allburov / flake8_boolean_trap

A flake8 plugin to detect boolean traps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flake8 Boolean Trap

A flake8 plugin to detect boolean traps.

docs available 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

About

A flake8 plugin to detect boolean traps.


Languages

Language:Python 94.2%Language:Shell 5.8%