# flake8-bandit
[![Build Status](https://travis-ci.org/tylerwince/flake8-bandit.svg?branch=master)](https://travis-ci.org/tylerwince/flake8-bandit)
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:
```text
[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](https://github.com/PyCQA/bandit) package from [PyCQA](https://meta.pycqa.org/#) for all the security testing.
Raw data
{
"_id": null,
"home_page": "https://github.com/tylerwince/flake8-bandit",
"name": "flake8-bandit",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Tyler Wince",
"author_email": "tylerwince@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/77/1c/4f66a7a52a246d6c64312b5c40da3af3630cd60b27af81b137796af3c0bc/flake8_bandit-4.1.1.tar.gz",
"platform": null,
"description": "\n# flake8-bandit\n[![Build Status](https://travis-ci.org/tylerwince/flake8-bandit.svg?branch=master)](https://travis-ci.org/tylerwince/flake8-bandit)\n\nAutomated security testing built right into your workflow!\n\nYou 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`.\n\n## Configuration\n\nTo include or exclude tests, use the standard `.bandit` configuration file. An example valid `.bandit` config file:\n\n```text\n[bandit]\nexclude = /frontend,/scripts,/tests,/venv\ntests: B101\n```\n\nIn this case, we've specified to ignore a number of paths, and to only test for B101.\n\n**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\n\n## How's it work?\n\nWe use the [bandit](https://github.com/PyCQA/bandit) package from [PyCQA](https://meta.pycqa.org/#) for all the security testing.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Automated security testing with bandit and flake8.",
"version": "4.1.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "30296c61848c08b4a31f1350dfd12c0c",
"sha256": "4c8a53eb48f23d4ef1e59293657181a3c989d0077c9952717e98a0eace43e06d"
},
"downloads": -1,
"filename": "flake8_bandit-4.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "30296c61848c08b4a31f1350dfd12c0c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4828,
"upload_time": "2022-08-29T13:48:39",
"upload_time_iso_8601": "2022-08-29T13:48:39.737386Z",
"url": "https://files.pythonhosted.org/packages/e7/5f/55bab0ac89f9ad9f4c6e38087faa80c252daec4ccb7776b4dac216ca9e3f/flake8_bandit-4.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "c2eacee092edd70b3382ecbd5636b58a",
"sha256": "068e09287189cbfd7f986e92605adea2067630b75380c6b5733dab7d87f9a84e"
},
"downloads": -1,
"filename": "flake8_bandit-4.1.1.tar.gz",
"has_sig": false,
"md5_digest": "c2eacee092edd70b3382ecbd5636b58a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 5403,
"upload_time": "2022-08-29T13:48:41",
"upload_time_iso_8601": "2022-08-29T13:48:41.225920Z",
"url": "https://files.pythonhosted.org/packages/77/1c/4f66a7a52a246d6c64312b5c40da3af3630cd60b27af81b137796af3c0bc/flake8_bandit-4.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-08-29 13:48:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "tylerwince",
"github_project": "flake8-bandit",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "flake8-bandit"
}