{"id":17332909,"url":"https://github.com/raybellwaves/ruff_format_notebook_test","last_synced_at":"2025-03-27T06:26:11.764Z","repository":{"id":206251795,"uuid":"716145972","full_name":"raybellwaves/ruff_format_notebook_test","owner":"raybellwaves","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-08T16:40:57.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T11:41:28.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raybellwaves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T14:33:41.000Z","updated_at":"2023-11-08T14:42:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f207b225-6c32-4697-a11d-19dcf5a72aa3","html_url":"https://github.com/raybellwaves/ruff_format_notebook_test","commit_stats":null,"previous_names":["raybellwaves/ruff_format_notebook_test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raybellwaves%2Fruff_format_notebook_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raybellwaves%2Fruff_format_notebook_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raybellwaves%2Fruff_format_notebook_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raybellwaves%2Fruff_format_notebook_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raybellwaves","download_url":"https://codeload.github.com/raybellwaves/ruff_format_notebook_test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245794190,"owners_count":20673136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T14:59:12.688Z","updated_at":"2025-03-27T06:26:11.759Z","avatar_url":"https://github.com/raybellwaves.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Repo to show ruff formatter not working for notebooks in pre-commit\n\nCreate a notebook that needs formatting. It will contain a cell that looks like\n\n`_l = [1, 2, 3,]`\n\nRun it in a GitHub Action to show it passes pre-commit whereas it should fail.\n\nYou can see it works locally using ruff on the command line as:\n```\ngit clone git@github.com:raybellwaves/ruff_format_notebook_test.git\ncd ruff_format_notebook_test\npython -m venv venv \u0026\u0026 source venv/bin/activate\npip install -r requirements.txt\nruff format . --check\n```\n\nYou can see it doesn't work using pre-commit as:\n```\npre-commit run --all-files ruff\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraybellwaves%2Fruff_format_notebook_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraybellwaves%2Fruff_format_notebook_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraybellwaves%2Fruff_format_notebook_test/lists"}