Skip to content

Commit caa751d

Browse files
committed
forgot to add bandit to dev reqs in cookie
1 parent 35e0aed commit caa751d

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# Version: 1.0.0
44
#
55

6-
.PHONY: all info coverage pytest black
6+
.PHONY: all info coverage pytest black secure vulnerabilities
77

88
info:
99
@echo "make options"
1010
@echo " black To format code with black"
1111
@echo " coverage To run coverage and display ASCII and output to htmlcov"
1212
@echo " pytest To run pytest with verbose option"
1313

14-
all: black pylint coverage secure
14+
all: black pylint coverage secure vulnerabilities
1515

1616
coverage:
1717
@pytest --cov --cov-report=html -vvv
@@ -28,3 +28,6 @@ black:
2828

2929
secure:
3030
@bandit -c pyproject.toml -r .
31+
32+
vulnerabilities:
33+
@pip-audit -r requirements.txt

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"https"
4444
],
4545
"__template_repo": "https://github.com/btr1975/cookiecutter-python-library",
46-
"__template_version": "1.0.16",
46+
"__template_version": "1.0.17",
4747
"_new_lines": "\n",
4848
"_copy_without_render": [
4949
".github"

make.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ IF "%1" == "all" (
1010
pylint hooks\
1111
pytest --cov --cov-report=html -vvv
1212
bandit -c pyproject.toml -r .
13+
pip-audit -r requirements.txt
1314
GOTO END
1415
)
1516

@@ -39,6 +40,11 @@ IF "%1" == "secure" (
3940
GOTO END
4041
)
4142

43+
IF "%1" == "vulnerabilities" (
44+
pip-audit -r requirements.txt
45+
GOTO END
46+
)
47+
4248
@ECHO make options
4349
@ECHO coverage To run coverage and display ASCII and output to htmlcov
4450
@ECHO black To format the code with black

{{cookiecutter.git_repo_name}}/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ myst-parser
1313
sphinx_rtd_theme
1414
sphinxcontrib-mermaid
1515
twine
16+
bandit
1617
{% if cookiecutter.use_requests == 'y' %}requests-mock{% endif %}

0 commit comments

Comments
 (0)