-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.bat
More file actions
62 lines (52 loc) · 1.33 KB
/
make.bat
File metadata and controls
62 lines (52 loc) · 1.33 KB
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
55
56
57
58
59
60
61
62
@ECHO OFF
REM Makefile for project needs
REM Author: Ben Trachtenberg
REM Version: 1.0.1
REM
IF "%1" == "all" (
uv run black hooks\
uv run black tests\
uv run pylint hooks\
uv run pytest --cov --cov-report=html -vvv
uv run bandit -c pyproject.toml -r .
uv export --no-dev --no-emit-project --no-editable > requirements.txt
uv export --no-emit-project --no-editable > requirements-dev.txt
uv run pip-audit -r requirements.txt
GOTO END
)
IF "%1" == "coverage" (
uv run pytest --cov --cov-report=html -vvv
GOTO END
)
IF "%1" == "pylint" (
uv run pylint hooks\
GOTO END
)
IF "%1" == "pytest" (
uv run pytest --cov -vvv
GOTO END
)
IF "%1" == "black" (
uv run black hooks\
uv run black tests\
GOTO END
)
IF "%1" == "security" (
uv run bandit -c pyproject.toml -r .
GOTO END
)
IF "%1" == "vulnerabilities" (
uv run pip-audit -r requirements.txt
GOTO END
)
IF "%1" == "pip-export" (
uv export --no-dev --no-emit-project --no-editable > requirements.txt
uv export --no-emit-project --no-editable > requirements-dev.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