A collection of flake8 checks.
Project description
flake8-stash
A collection of flake8 checks.
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. Usefields
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. Usefields
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. Usefields
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. Usefields
instead.
Installation
Install with pip
pip install flake8-stash
Usage with pre-commit
repos:
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
hooks:
- id: flake8
additional_dependencies: [ "flake8-stash==0.8.0" ]
License
This project is MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-stash-0.8.0.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for flake8_stash-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf67a0eda8d8461c82765a5c2e217e4ac1716c9f8fa5f1acb29a484d0a7bd15 |
|
MD5 | 0ae503c8baf870f56e5f2feb9d08cc53 |
|
BLAKE2b-256 | 5a4b52e0d65e0d9e0d8d48e766022f34b7ef438516114442bba007d1114d29e2 |