Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_boolean_trap-0.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

flake8_boolean_trap-0.1.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page