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.

Download files

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

Source Distribution

pytest-bandit-0.6.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pytest_bandit-0.6.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest-bandit-0.6.1.tar.gz.

File metadata

  • Download URL: pytest-bandit-0.6.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest-bandit-0.6.1.tar.gz
Algorithm Hash digest
SHA256 9eee170e4ce4e2fe71b1e14c41f7579daf02db253c863a6093ba64de9f878ab4
MD5 af692f9b7d2d6db4a13757339e70ae01
BLAKE2b-256 3a0f09b4fe2276fc922dbe2ab6970455473b3796336c1afb32c0a8bae73e6f85

See more details on using hashes here.

File details

Details for the file pytest_bandit-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_bandit-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytest_bandit-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9612d299ff32c6b6c74fd149ea0444fa65cb2da5918cbeb6616adba631505dd3
MD5 055eb023f6edab889c74055b7bb90a53
BLAKE2b-256 d25aadb256fe1fe7f93c8d54de2ae01a039e57a7b144f52fa168788782a579a6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 files

0.5.2

2 files

0.5.1

1 file

0.5.0

1 file

0.3.1

1 file

0.3.0

1 file

0.2.0

1 file

0.1.1

1 file

Supported by

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