# flake8-stash
A collection of [flake8](https://github.com/pycqa/flake8) checks.
[](https://github.com/ghazi-git/flake8-stash/actions/workflows/tests.yml)
[](https://pypi.org/project/flake8-stash/)
[](https://pypi.org/project/flake8-stash/)
[](https://github.com/ghazi-git/flake8-stash/blob/main/LICENSE)
[](https://github.com/psf/black)
## List of checks
- **STA011**: The use of `fields = '__all__'` in model forms is not allowed. List the fields one by one instead.
- **STA012**: The use of `exclude` in model forms is not allowed. Use `fields` instead.
- **STA021**: The use of `fields = '__all__'` in model serializers is not allowed. List the fields one by one instead.
- **STA022**: The use of `exclude` in model serializers is not allowed. Use `fields` instead.
- **STA031**: The use of `fields = '__all__'` in filtersets is not allowed. List the fields one by one instead.
- **STA032**: The use of `exclude` in filtersets is not allowed. Use `fields` instead.
- **STA041**: The use of `fields = '__all__'` is not allowed. List the fields one by one instead.
- **STA042**: The use of `exclude` is not allowed. Use `fields` instead.
## Installation
Install with `pip`
```shell
pip install flake8-stash
```
## Usage with pre-commit
```yaml
repos:
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
hooks:
- id: flake8
additional_dependencies: [ "flake8-stash==0.10.0" ]
```
## License
This project is [MIT licensed](LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "flake8-stash",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "flake8, flake8 plugin, collection of checks, lint dunder all",
"author": "Ghazi Abbassi",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/03/a0/184a4b981db86d07ed0b3425477c593bc94a6883dae6ce9ce2ca5da4fc61/flake8_stash-0.10.0.tar.gz",
"platform": null,
"description": "# flake8-stash\n\nA collection of [flake8](https://github.com/pycqa/flake8) checks.\n\n[](https://github.com/ghazi-git/flake8-stash/actions/workflows/tests.yml)\n[](https://pypi.org/project/flake8-stash/)\n[](https://pypi.org/project/flake8-stash/)\n[](https://github.com/ghazi-git/flake8-stash/blob/main/LICENSE)\n[](https://github.com/psf/black)\n\n## List of checks\n\n- **STA011**: The use of `fields = '__all__'` in model forms is not allowed. List the fields one by one instead.\n- **STA012**: The use of `exclude` in model forms is not allowed. Use `fields` instead.\n- **STA021**: The use of `fields = '__all__'` in model serializers is not allowed. List the fields one by one instead.\n- **STA022**: The use of `exclude` in model serializers is not allowed. Use `fields` instead.\n- **STA031**: The use of `fields = '__all__'` in filtersets is not allowed. List the fields one by one instead.\n- **STA032**: The use of `exclude` in filtersets is not allowed. Use `fields` instead.\n- **STA041**: The use of `fields = '__all__'` is not allowed. List the fields one by one instead.\n- **STA042**: The use of `exclude` is not allowed. Use `fields` instead.\n\n## Installation\n\nInstall with `pip`\n\n```shell\npip install flake8-stash\n```\n\n## Usage with pre-commit\n\n```yaml\nrepos:\n - repo: https://github.com/pycqa/flake8\n rev: '6.0.0'\n hooks:\n - id: flake8\n additional_dependencies: [ \"flake8-stash==0.10.0\" ]\n```\n\n## License\n\nThis project is [MIT licensed](LICENSE).\n",
"bugtrack_url": null,
"license": null,
"summary": "A collection of flake8 checks.",
"version": "0.10.0",
"project_urls": {
"Changelog": "https://github.com/ghazi-git/flake8-stash/releases",
"Code": "https://github.com/ghazi-git/flake8-stash",
"Issues": "https://github.com/ghazi-git/flake8-stash/issues"
},
"split_keywords": [
"flake8",
" flake8 plugin",
" collection of checks",
" lint dunder all"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6a8462f49b8772b90d8058e88980a36268afabc745d4f5aa61fa60a1542c7ec2",
"md5": "14e8cf15c8429ed145046acb12e800f6",
"sha256": "19bfac5b0bdf1a8a6292df37be44cbe9f8687f773a074ef0ffae8622d4a5725b"
},
"downloads": -1,
"filename": "flake8_stash-0.10.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14e8cf15c8429ed145046acb12e800f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5317,
"upload_time": "2024-10-11T22:09:35",
"upload_time_iso_8601": "2024-10-11T22:09:35.413538Z",
"url": "https://files.pythonhosted.org/packages/6a/84/62f49b8772b90d8058e88980a36268afabc745d4f5aa61fa60a1542c7ec2/flake8_stash-0.10.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "03a0184a4b981db86d07ed0b3425477c593bc94a6883dae6ce9ce2ca5da4fc61",
"md5": "24e1f53595ecce5b79fa5b2f85bc2d26",
"sha256": "0bcb56543d7c2dcec7c385a512c3db09861492b05c2cd1c74c7398db896fa56d"
},
"downloads": -1,
"filename": "flake8_stash-0.10.0.tar.gz",
"has_sig": false,
"md5_digest": "24e1f53595ecce5b79fa5b2f85bc2d26",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 8169,
"upload_time": "2024-10-11T22:09:37",
"upload_time_iso_8601": "2024-10-11T22:09:37.708445Z",
"url": "https://files.pythonhosted.org/packages/03/a0/184a4b981db86d07ed0b3425477c593bc94a6883dae6ce9ce2ca5da4fc61/flake8_stash-0.10.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-11 22:09:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ghazi-git",
"github_project": "flake8-stash",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "flake8-stash"
}