-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.bat
54 lines (45 loc) · 950 Bytes
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@ECHO OFF
REM Makefile for project needs
REM Author: Ben Trachtenberg
REM Version: 1.0.0
REM
IF "%1" == "all" (
black hooks\
black tests\
pylint hooks\
pytest --cov --cov-report=html -vvv
bandit -c pyproject.toml -r .
pip-audit -r requirements.txt
GOTO END
)
IF "%1" == "coverage" (
pytest --cov --cov-report=html -vvv
GOTO END
)
IF "%1" == "pylint" (
pylint hooks\
GOTO END
)
IF "%1" == "pytest" (
pytest --cov -vvv
GOTO END
)
IF "%1" == "black" (
black hooks\
black tests\
GOTO END
)
IF "%1" == "security" (
bandit -c pyproject.toml -r .
GOTO END
)
IF "%1" == "vulnerabilities" (
pip-audit -r requirements.txt
GOTO END
)
@ECHO make options
@ECHO coverage To run coverage and display ASCII and output to htmlcov
@ECHO black To format the code with black
@ECHO pylint To run pylint
@ECHO pytest To run pytest with verbose option
:END