Skip to main content
PyPI version Python versions See Build Status on Travis CI

A bandit plugin for pytest


This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Features

  • Execute bandit testing against a repository

Requirements

  • Bandit > 1.4.0

Installation

You can install “pytest-bandit” via pip from PyPI:

$ pip install pytest-bandit

Usage

  • add bandit_targets to your pytest configuration and add at least one directory to traverse

  • you probably want bandit_recurse = true in your configuration as well

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

Development setup & testing

python -m venv .venv source .venv/bin/activate pip insatll tox tox

License

Distributed under the terms of the MIT license, “pytest-bandit” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for pytest-bandit 0.6.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 pytest-bandit 0.6.1
File Size Uploaded
pytest-bandit-0.6.1.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-bandit 0.6.1
File Interpreter ABI Platform
pytest_bandit-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / pytest-bandit-0.6.1.tar.gz

Download URL pytest-bandit-0.6.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9eee170e4ce4e2fe71b1e14c41f7579daf02db253c863a6093ba64de9f878ab4
BLAKE2b-256 checksum
How to use checksums
3a0f09b4fe2276fc922dbe2ab6970455473b3796336c1afb32c0a8bae73e6f85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / pytest_bandit-0.6.1-py3-none-any.whl

Download URL pytest_bandit-0.6.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9612d299ff32c6b6c74fd149ea0444fa65cb2da5918cbeb6616adba631505dd3
BLAKE2b-256 checksum
How to use checksums
d25aadb256fe1fe7f93c8d54de2ae01a039e57a7b144f52fa168788782a579a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.5.2

2 release files

0.5.1

1 release file

0.5.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

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