{"id":13771104,"url":"https://github.com/PeterJCLaw/fix8","last_synced_at":"2025-05-11T03:33:03.463Z","repository":{"id":46003459,"uuid":"259103367","full_name":"PeterJCLaw/fix8","owner":"PeterJCLaw","description":"Automatic fix for Python linting issues found by Flake8","archived":false,"fork":false,"pushed_at":"2023-09-17T18:47:44.000Z","size":111,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T17:56:24.526Z","etag":null,"topics":["fixer","linting","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/PeterJCLaw.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":"2020-04-26T18:25:58.000Z","updated_at":"2022-09-19T20:23:06.000Z","dependencies_parsed_at":"2024-08-03T17:04:15.087Z","dependency_job_id":null,"html_url":"https://github.com/PeterJCLaw/fix8","commit_stats":{"total_commits":108,"total_committers":1,"mean_commits":108.0,"dds":0.0,"last_synced_commit":"7a74f4236d708005f8c865b07bd62a5712555d5d"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Ffix8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Ffix8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Ffix8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Ffix8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterJCLaw","download_url":"https://codeload.github.com/PeterJCLaw/fix8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":["fixer","linting","python"],"created_at":"2024-08-03T17:00:47.683Z","updated_at":"2025-05-11T03:33:03.133Z","avatar_url":"https://github.com/PeterJCLaw.png","language":"Python","readme":"# Fix8\n\n[![CircleCI](https://circleci.com/gh/PeterJCLaw/fix8.svg?style=svg)](https://circleci.com/gh/PeterJCLaw/fix8)\n\nAutomatic fix for Python linting issues found by [Flake8](https://flake8.pycqa.org/).\n\n## Fixes\n\n* `F401`: Unused imports are removed. (If doing so would create a blank line at\n  the start of the file then the next line is also removed).\n* `C812`, `C813`, `C814`, `C815`, `C816`: Trailing commas are added\n* `FA100`: Future annotation imports are added.\n* `LBL001`: Leading blank lines are removed.\n\n## Install\n\n``` bash\npip install fix8\n```\n\n## Configuration\n\nFix8 will only fix issues that flake8 finds, so your existing flake8 configuration\n(including which plugins you have installed) will determine what gets fixed.\n\n## Usage\n\n`fix8` wraps `flake8`, so takes the same arguments. The easist way to use it is\nto pass the files or directories you want fixed directly to it:\n\n``` bash\nfix8 project/ that.py this.py\n```\n\n### Wrappers\n\nIf you have a large project you may want to wrap it, something like this:\n\n``` bash\nfix8-local() {\n    git diff --name-only --diff-filter=d | grep '\\.py$' | sort --unique | xargs --no-run-if-empty fix8\n}\n```\n\nThis can be paired with `isort` to do both fixes with a single command:\n\n``` bash\n# Put these functions in your `.bashrc` or similar\nrun-py-local() {\n    git diff --name-only --diff-filter=d | grep '\\.py$' | sort --unique | xargs --no-run-if-empty \"$@\"\n}\n\nfix8-local() {\n    run-py-local fix8 \u0026\u0026 run-py-local isort\n}\n\n# Usage is then just this, but will detect and fix any changes that might need fixing\n$ fix8-local\n```\n","funding_links":[],"categories":["UNIX-way formatters"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeterJCLaw%2Ffix8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPeterJCLaw%2Ffix8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPeterJCLaw%2Ffix8/lists"}