Flake8 Boolean Trap
A flake8 plugin to detect boolean traps.
Setup
prerequisites
- python>=3.7
- flake8 >=4
install
$ pip install flake8_boolean_trap
Usage
Just run flake8 as you normally would.
Lint Codes
| Code. | Description |
|---|---|
| FBT001 | Boolean positional arg in function definition |
| FBT002 | Boolean default value in function definition |
| FBT003 | Boolean positional value in function call |
Metadata
Release files for flake8-boolean-trap 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8_boolean_trap-0.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flake8_boolean_trap-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / flake8_boolean_trap-0.1.0.tar.gz
| Download URL | flake8_boolean_trap-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c45106ce580dae621d13ba150048620a22def24f8f03ae946bacab78283ff817
|
|
BLAKE2b-256 checksum How to use checksums |
08772030afa1a82e273fce1209216fe76dde417d79ecd0b9a3ba0b3147ac5b65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
|
Release files / flake8_boolean_trap-0.1.0-py3-none-any.whl
| Download URL | flake8_boolean_trap-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24969fe21fa67d6094423f2949e1f2b2b9ddd2a25cf96bf3eeb62f3ece49630d
|
|
BLAKE2b-256 checksum How to use checksums |
efe895973d61a9ef256edd13852cd9cc34a995c2a97add79e11b378d4261f41b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.12 Linux/5.13.0-1025-azure
|