flake8 plugin which forbids boolean positional arguments
Project description
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 |
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
Built Distribution
Close
Hashes for flake8_boolean_trap-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c45106ce580dae621d13ba150048620a22def24f8f03ae946bacab78283ff817 |
|
MD5 | 74bdd5259c5b9cbce0232bd537fe1430 |
|
BLAKE2b-256 | 08772030afa1a82e273fce1209216fe76dde417d79ecd0b9a3ba0b3147ac5b65 |
Close
Hashes for flake8_boolean_trap-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24969fe21fa67d6094423f2949e1f2b2b9ddd2a25cf96bf3eeb62f3ece49630d |
|
MD5 | 717260410283d4beec93165256de634e |
|
BLAKE2b-256 | efe895973d61a9ef256edd13852cd9cc34a995c2a97add79e11b378d4261f41b |