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
excludein model forms is not allowed. Usefieldsinstead. - STA021: The use of
fields = '__all__'in model serializers is not allowed. List the fields one by one instead. - STA022: The use of
excludein model serializers is not allowed. Usefieldsinstead. - STA031: The use of
fields = '__all__'in filtersets is not allowed. List the fields one by one instead. - STA032: The use of
excludein filtersets is not allowed. Usefieldsinstead. - STA041: The use of
fields = '__all__'is not allowed. List the fields one by one instead. - STA042: The use of
excludeis not allowed. Usefieldsinstead.
Install with pip
pip install flake8-stashrepos:
- 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.