A collection of flake8 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.
Install with pip
pip install flake8-stash
repos:
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
hooks:
- id: flake8
additional_dependencies: [ "flake8-stash==0.10.0" ]
This project is MIT licensed.