# flake8-stash
A collection of [flake8](https://github.com/pycqa/flake8) checks.
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ghazi-git/flake8-stash/tests.yml?branch=main&label=Tests&logo=GitHub)](https://github.com/ghazi-git/flake8-stash/actions/workflows/tests.yml)
[![PyPI](https://img.shields.io/pypi/v/flake8-stash)](https://pypi.org/project/flake8-stash/)
[![PyPI](https://img.shields.io/pypi/pyversions/flake8-stash?logo=python&logoColor=white)](https://pypi.org/project/flake8-stash/)
[![PyPI - License](https://img.shields.io/pypi/l/flake8-stash)](https://github.com/ghazi-git/flake8-stash/blob/main/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](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.9.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/6b/0f/9e0a52fc843844123935a92c0db102afc5f7b476806d5920e0bab5d2b379/flake8_stash-0.9.0.tar.gz",
"platform": null,
"description": "# flake8-stash\n\nA collection of [flake8](https://github.com/pycqa/flake8) checks.\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ghazi-git/flake8-stash/tests.yml?branch=main&label=Tests&logo=GitHub)](https://github.com/ghazi-git/flake8-stash/actions/workflows/tests.yml)\n[![PyPI](https://img.shields.io/pypi/v/flake8-stash)](https://pypi.org/project/flake8-stash/)\n[![PyPI](https://img.shields.io/pypi/pyversions/flake8-stash?logo=python&logoColor=white)](https://pypi.org/project/flake8-stash/)\n[![PyPI - License](https://img.shields.io/pypi/l/flake8-stash)](https://github.com/ghazi-git/flake8-stash/blob/main/LICENSE)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](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.9.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.9.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": "a8cbfdbd1a7a62e2078e1e32f44bf3a88786188fa063f3281ce4530d26b516bd",
"md5": "cb5c1792786f5f55582155b046c7fdcc",
"sha256": "e11da2b4987c5cc3c8bb1dc26958bdb5a09e33bd16c84ce36d80d23ee4012c48"
},
"downloads": -1,
"filename": "flake8_stash-0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb5c1792786f5f55582155b046c7fdcc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5298,
"upload_time": "2023-10-07T06:40:43",
"upload_time_iso_8601": "2023-10-07T06:40:43.942857Z",
"url": "https://files.pythonhosted.org/packages/a8/cb/fdbd1a7a62e2078e1e32f44bf3a88786188fa063f3281ce4530d26b516bd/flake8_stash-0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6b0f9e0a52fc843844123935a92c0db102afc5f7b476806d5920e0bab5d2b379",
"md5": "12b1faf510a60a4b3ec3daf713424358",
"sha256": "a1464c3d36275218e30a496bd782172076910ea41d116932784be25113a47092"
},
"downloads": -1,
"filename": "flake8_stash-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "12b1faf510a60a4b3ec3daf713424358",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 8048,
"upload_time": "2023-10-07T06:40:46",
"upload_time_iso_8601": "2023-10-07T06:40:46.088151Z",
"url": "https://files.pythonhosted.org/packages/6b/0f/9e0a52fc843844123935a92c0db102afc5f7b476806d5920e0bab5d2b379/flake8_stash-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-07 06:40:46",
"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"
}