{"id":34049387,"url":"https://github.com/xenia-foxtrot/flake8-rewriter","last_synced_at":"2026-03-11T13:39:36.420Z","repository":{"id":57430007,"uuid":"169821639","full_name":"xenia-foxtrot/flake8-rewriter","owner":"xenia-foxtrot","description":"A flake8 plugin that rewrites error codes","archived":false,"fork":false,"pushed_at":"2019-02-10T03:04:13.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-14T10:18:30.899Z","etag":null,"topics":["flake8","flake8-plugin","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xenia-foxtrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-09T01:45:14.000Z","updated_at":"2019-02-10T03:04:14.000Z","dependencies_parsed_at":"2022-08-26T03:24:18.116Z","dependency_job_id":null,"html_url":"https://github.com/xenia-foxtrot/flake8-rewriter","commit_stats":null,"previous_names":["xenia-foxtrot/flake8-rewriter","ilikepizza555/flake8-rewriter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xenia-foxtrot/flake8-rewriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenia-foxtrot%2Fflake8-rewriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenia-foxtrot%2Fflake8-rewriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenia-foxtrot%2Fflake8-rewriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenia-foxtrot%2Fflake8-rewriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xenia-foxtrot","download_url":"https://codeload.github.com/xenia-foxtrot/flake8-rewriter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xenia-foxtrot%2Fflake8-rewriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flake8","flake8-plugin","python"],"created_at":"2025-12-14T00:36:10.919Z","updated_at":"2026-03-11T13:39:36.413Z","avatar_url":"https://github.com/xenia-foxtrot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A flake8 plugin that rewrites error codes.\n\n# Usage\n\nInstall using `pip`:\n```\n$ pip install flake8-rewriter\n```\n\n## With `format`\nTo activate the plugin, set the format option to \"rewriter\". Then pass in `--replace=\u003ccode1\u003e:\u003ccode2\u003e` for each code you want replaced. In this syntax, `\u003ccode1\u003e` will be replaced with `\u003ccode2\u003e`.\n\nThe following will turn all \"line longer than length\" errors to warnings.\n```\n$ flake8 --format=rewriter --replace=E501:W501\n```\n\n## With `force-rewriter`\n\nIn some cases, you may want to use a custom format string, or are unable to modify the `--format` option (such as within an IDE). Thus, the `--force-rewriter` option was implemented to handle these cases. If `--format` specifies a format string, then the plugin will output using that string.\n\nThe following does the same as above, but also changes the output formatting.\n```\n$ flake8 --force-rewriter --format='%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s' --replace=E501:W501\n```\n\n# Changelong\n\n```\nv1.2.0:\n    - --force-rewriter option is no longer fails to work if a --format option is placed after it.\n\nv1.1.0:\n    - Added --force-rewriter option\n    - With --force-rewriter specified, flake8-rewriter now respects format strings specified through --format\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenia-foxtrot%2Fflake8-rewriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenia-foxtrot%2Fflake8-rewriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenia-foxtrot%2Fflake8-rewriter/lists"}