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.10.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.10.0.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file flake8_stash-0.10.0.tar.gz
.
File metadata
- Download URL: flake8_stash-0.10.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bcb56543d7c2dcec7c385a512c3db09861492b05c2cd1c74c7398db896fa56d |
|
MD5 | 24e1f53595ecce5b79fa5b2f85bc2d26 |
|
BLAKE2b-256 | 03a0184a4b981db86d07ed0b3425477c593bc94a6883dae6ce9ce2ca5da4fc61 |
File details
Details for the file flake8_stash-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_stash-0.10.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19bfac5b0bdf1a8a6292df37be44cbe9f8687f773a074ef0ffae8622d4a5725b |
|
MD5 | 14e8cf15c8429ed145046acb12e800f6 |
|
BLAKE2b-256 | 6a8462f49b8772b90d8058e88980a36268afabc745d4f5aa61fa60a1542c7ec2 |