File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
{{cookiecutter.git_repo_name}} Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 3
3
# Version: 1.0.0
4
4
#
5
5
6
- .PHONY : all info coverage pytest black
6
+ .PHONY : all info coverage pytest black secure vulnerabilities
7
7
8
8
info :
9
9
@echo " make options"
10
10
@echo " black To format code with black"
11
11
@echo " coverage To run coverage and display ASCII and output to htmlcov"
12
12
@echo " pytest To run pytest with verbose option"
13
13
14
- all : black pylint coverage secure
14
+ all : black pylint coverage secure vulnerabilities
15
15
16
16
coverage :
17
17
@pytest --cov --cov-report=html -vvv
28
28
29
29
secure :
30
30
@bandit -c pyproject.toml -r .
31
+
32
+ vulnerabilities :
33
+ @pip-audit -r requirements.txt
Original file line number Diff line number Diff line change 43
43
" https"
44
44
],
45
45
"__template_repo" : " https://github.com/btr1975/cookiecutter-python-library" ,
46
- "__template_version" : " 1.0.16 " ,
46
+ "__template_version" : " 1.0.17 " ,
47
47
"_new_lines" : " \n " ,
48
48
"_copy_without_render" : [
49
49
" .github"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ IF "%1" == "all" (
10
10
pylint hooks\
11
11
pytest --cov --cov-report=html -vvv
12
12
bandit -c pyproject.toml -r .
13
+ pip-audit -r requirements.txt
13
14
GOTO END
14
15
)
15
16
@@ -39,6 +40,11 @@ IF "%1" == "secure" (
39
40
GOTO END
40
41
)
41
42
43
+ IF " %1 " == " vulnerabilities" (
44
+ pip-audit -r requirements.txt
45
+ GOTO END
46
+ )
47
+
42
48
@ ECHO make options
43
49
@ ECHO coverage To run coverage and display ASCII and output to htmlcov
44
50
@ ECHO black To format the code with black
Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ myst-parser
13
13
sphinx_rtd_theme
14
14
sphinxcontrib-mermaid
15
15
twine
16
+ bandit
16
17
{% if cookiecutter.use_requests == 'y' %}requests-mock{% endif %}
You can’t perform that action at this time.
0 commit comments