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.9.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.9.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for flake8_stash-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11da2b4987c5cc3c8bb1dc26958bdb5a09e33bd16c84ce36d80d23ee4012c48 |
|
MD5 | cb5c1792786f5f55582155b046c7fdcc |
|
BLAKE2b-256 | a8cbfdbd1a7a62e2078e1e32f44bf3a88786188fa063f3281ce4530d26b516bd |