Skip to main content

flake8-bandit

Build Status

Automated security testing built right into your workflow!

You already use flake8 to lint all your code for errors, ensure docstrings are formatted correctly, sort your imports correctly, and much more... so why not ensure you are writing secure code while you're at it? If you already have flake8 installed all it takes is pip install flake8-bandit.

Configuration

To include or exclude tests, use the standard .bandit configuration file. An example valid .bandit config file:

[bandit]
exclude = /frontend,/scripts,/tests,/venv
tests: B101

In this case, we've specified to ignore a number of paths, and to only test for B101.

Note: flake8-bugbear uses bandit default prefix 'B' so this plugin replaces the 'B' with an 'S' for Security. For more information, see https://github.com/PyCQA/flake8-bugbear/issues/37

How's it work?

We use the bandit package from PyCQA for all the security testing.

Metadata

Release files for flake8-bandit 4.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-bandit 4.1.1
File Size Uploaded
flake8_bandit-4.1.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-bandit 4.1.1
File Interpreter ABI Platform
flake8_bandit-4.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / flake8_bandit-4.1.1.tar.gz

Download URL flake8_bandit-4.1.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
068e09287189cbfd7f986e92605adea2067630b75380c6b5733dab7d87f9a84e
BLAKE2b-256 checksum
How to use checksums
771c4f66a7a52a246d6c64312b5c40da3af3630cd60b27af81b137796af3c0bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / flake8_bandit-4.1.1-py3-none-any.whl

Download URL flake8_bandit-4.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c8a53eb48f23d4ef1e59293657181a3c989d0077c9952717e98a0eace43e06d
BLAKE2b-256 checksum
How to use checksums
e75f55bab0ac89f9ad9f4c6e38087faa80c252daec4ccb7776b4dac216ca9e3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

4.1.1 This release

2 release files

3.0.0

2 release files

2.1.2

1 release file

2.1.1

1 release file

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page