Skip to main content

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


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-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_boolean_trap-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file flake8_boolean_trap-1.0.0.tar.gz.

File metadata

  • Download URL: flake8_boolean_trap-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for flake8_boolean_trap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1edd0bbb6767a2302f897c5e14dd5b4f6147dbe5a4529d10c2221bc7bbb85d46
MD5 939b78642355205b80906305db7e0639
BLAKE2b-256 64cc30d36f22ff5a3a81086c37dbbccb2757ae41422f39f1111089d44633020a

See more details on using hashes here.

File details

Details for the file flake8_boolean_trap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: flake8_boolean_trap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for flake8_boolean_trap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d54496bbbd33ea50f452cccf381fec2ec3af31c68875f8eec435dbb4e9a8f27a
MD5 fe0f00462aede49b1b5a87b32ebe27a6
BLAKE2b-256 a0928e9bc5e3f341f3ba736a027bc26732105e1cb960a7aab3be92c8055ae8eb

See more details on using hashes here.

Supported by

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