{"id":13733680,"url":"https://github.com/orsinium-labs/flake8-warnings","last_synced_at":"2025-04-15T21:25:21.162Z","repository":{"id":62095377,"uuid":"460009638","full_name":"orsinium-labs/flake8-warnings","owner":"orsinium-labs","description":"Python linter (flake8, pylint, CLI) that warns you about using deprecated modules, classes, and functions","archived":false,"fork":false,"pushed_at":"2023-09-28T06:43:58.000Z","size":48,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:34:12.236Z","etag":null,"topics":["clean-code","code-quality","flake8","flake8-extension","flake8-extensions","flake8-plugin","flake8-plugins","linter","pylint","python","python3","qa","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-16T13:11:24.000Z","updated_at":"2024-05-13T09:06:07.000Z","dependencies_parsed_at":"2024-01-06T09:54:04.267Z","dependency_job_id":"3368a83c-7191-4bf7-8a19-5a02573ade02","html_url":"https://github.com/orsinium-labs/flake8-warnings","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.2142857142857143,"last_synced_commit":"2b2d6cca4aa268c17ea0d1b69459c0229034489e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fflake8-warnings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fflake8-warnings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fflake8-warnings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fflake8-warnings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/flake8-warnings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650778,"owners_count":21139685,"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":["clean-code","code-quality","flake8","flake8-extension","flake8-extensions","flake8-plugin","flake8-plugins","linter","pylint","python","python3","qa","security"],"created_at":"2024-08-03T03:00:47.355Z","updated_at":"2025-04-15T21:25:21.126Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Python","funding_links":[],"categories":["Bugs"],"sub_categories":[],"readme":"# flake8-warnings\n\nPython linter that warns you about using deprecated modules, classes, and functions. It provides a CLI as well as [flake8][flake8] and [pylint][pylint] plugins.\n\n## Usage\n\nInstallation:\n\n```bash\npython3 -m pip install flake8-warnings\n```\n\nNow, you can use it in one of the following ways:\n\n1. Directly from CLI: `python3 -m flake8_warnings ./my_project/`\n1. As a [flake8][flake8] plugin. Just run `flake8 ./my_project/`, it will automatically detect the plugin.\n1. As a [pylint][pylint] plugin. For pylint, plugins must be explicitly specified: `pylint --load-plugins=flake8_warnings ./my_project/`.\n\n[flake8]: https://flake8.pycqa.org/en/latest/\n[pylint]: https://pylint.org/\n\n## How it works\n\nIt analyzes all imported modules, classes and functions and detects the following:\n\n1. [warnings.warn](https://docs.python.org/3/library/warnings.html#warnings.warn) function calls.\n1. Deprecation decorators like [deprecated](https://github.com/tantale/deprecated) or [deprecation](https://github.com/briancurtin/deprecation).\n1. Deprecation messages in docstrings.\n1. Stdlib modules deprecated by [PEP 594](https://peps.python.org/pep-0594/).\n\n## Error codes\n\nThe tool provides a different error code for each [warning category](https://docs.python.org/3/library/warnings.html#warning-categories):\n\n+ 01: Warning\n+ 02: UserWarning\n+ 03: DeprecationWarning\n+ 04: SyntaxWarning\n+ 05: RuntimeWarning\n+ 06: FutureWarning\n+ 07: PendingDeprecationWarning\n+ 08: ImportWarning\n+ 09: UnicodeWarning\n+ 10: BytesWarning\n+ 11: ResourceWarning\n\nThis is how they are used in different linters:\n\n+ In flake8, the code prefix is `WS0`, so `DeprecationWarning` will be reported as `WS003`.\n+ In pylint, the prefix is `W99`, so `DeprecationWarning` will be reported as `W9903`. The \"message-symbol\" is the warning category. So, if you want to ignore an error about `DeprecationWarning`, add `# pylint: disable=DeprecationWarning` to this line.\n+ If you use CLI, the warning category will be shown you directly, without any obscure codes.\n\nIn all cases, the error message is the detected warning message.\n\n## License\n\n1. flake8-wranings is licensed under [MIT License](./LICENSE). On practice, I don't care how you're going to use it. i did the project because it is fun, not because I want to be famous or whatever.\n1. [astroid](https://github.com/PyCQA/astroid) is a direct runtime dependency of flake8-warning and it is licensed under [LGPL-2.1 License](https://github.com/PyCQA/astroid/blob/main/LICENSE). It allows commercial and private usage, distribution and whatever, don't confuse it with GPL. However, if your legal department is still nervous, just don't make flake8-warnings a production dependency (why would you?), use it only on dev and test environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fflake8-warnings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fflake8-warnings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fflake8-warnings/lists"}