Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

[WIP] feat: Add bandit option and configuration #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"version": "0.0.1-dev",

"use_black_formatter": "n",
"use_bandit_sec_scan": "n",
"use_spellcheck": "n",

"ci": "{% if cookiecutter.vs|lower == 'github' %}azure{% else %}jenkins{% endif %}",
Expand Down
3 changes: 3 additions & 0 deletions {{cookiecutter.project_name}}/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ tox==3.12.1
{% if cookiecutter.use_black_formatter|lower == "y" -%}
pytest-black==0.3.7
{% endif %}
{% if cookiecutter.use_bandit_sec_scan|lower == "y" -%}
pytest-bandit==0.5.1
{% endif %}
{% if cookiecutter.use_spellcheck|lower == "y" -%}
pyenchant==2.0.0
{% endif %}
4 changes: 4 additions & 0 deletions {{cookiecutter.project_name}}/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ test = pytest
addopts = -s -vv --cov-report xml:build/coverage.xml --cov-report term --cov-branch --cov {{ cookiecutter.project_slug }} --junitxml=build/test_results.xml{% if cookiecutter.use_black_formatter|lower == "y" %} --black{% endif %}
testpaths = tests{% if cookiecutter.use_black_formatter|lower == "y" %} {{ cookiecutter.project_slug }} {% endif %}
collect_ignore = ['setup.py']
{% if cookiecutter.use_bandit_sec_scan|lower == "y" -%}
bandit_targets = {{ cookiecutter.project_slug }}
bandit_recurse = true
{% endif %}

[coverage:report]
show_missing = true
Expand Down