-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.bat
More file actions
71 lines (59 loc) · 1.62 KB
/
make.bat
File metadata and controls
71 lines (59 loc) · 1.62 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
63
64
65
66
67
68
69
70
71
@ECHO OFF
REM Makefile for project needs
REM Author: Ben Trachtenberg
REM Version: 2.0.0
REM
IF "%1" == "all" (
uv run black pod_porter/
uv run black tests/
uv run pylint pod_porter\
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
GOTO END
)
IF "%1" == "build" (
uv build --wheel --sdist
GOTO END
)
IF "%1" == "coverage" (
uv run pytest --cov --cov-report=html -vvv
GOTO END
)
IF "%1" == "pylint" (
uv run pylint pod_porter\
GOTO END
)
IF "%1" == "pytest" (
uv run pytest --cov -vvv
GOTO END
)
IF "%1" == "format" (
uv run black pod_porter/
uv run black tests/
GOTO END
)
IF "%1" == "check-security" (
uv run bandit -c pyproject.toml -r .
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
)
IF "%1" == "gh-pages" (
rmdir /s /q docs\source\code
uv run sphinx-apidoc -o ./docs/source/code ./pod_porter
uv run sphinx-build ./docs ./docs/gh-pages
GOTO END
)
@ECHO make options
@ECHO all To run coverage, format, pylint, and check-vuln
@ECHO build To build a distribution
@ECHO coverage To run coverage and display ASCII and output to htmlcov
@ECHO format To format the code with black
@ECHO pylint To run pylint
@ECHO pytest To run pytest with verbose option
:END