flake8 plugin which forbids boolean positional arguments
Project description
Flake8 Boolean Trap
A flake8 plugin to detect boolean traps.
docs availabe at readthedocs
Setup
prerequisites
- python>=3.8
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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1edd0bbb6767a2302f897c5e14dd5b4f6147dbe5a4529d10c2221bc7bbb85d46 |
|
MD5 | 939b78642355205b80906305db7e0639 |
|
BLAKE2b-256 | 64cc30d36f22ff5a3a81086c37dbbccb2757ae41422f39f1111089d44633020a |
Close
Hashes for flake8_boolean_trap-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54496bbbd33ea50f452cccf381fec2ec3af31c68875f8eec435dbb4e9a8f27a |
|
MD5 | fe0f00462aede49b1b5a87b32ebe27a6 |
|
BLAKE2b-256 | a0928e9bc5e3f341f3ba736a027bc26732105e1cb960a7aab3be92c8055ae8eb |