-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
52 lines (41 loc) · 898 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
@ECHO OFF
REM Windows Makefile
set /p APP_NAME=<APP_NAME
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. docs to generate docs with sphynx
echo. init to install required libraries
echo. inspect to inspect security issues in python code
echo. run to run the project with python
echo. test to test with pytest
echo. test-cov to test with coverage info
goto end
)
if "%1" == "docs" (
echo "not implememted"
goto end
)
if "%1" == "init" (
pip install -r requirements.txt
pip install -r requirements-dev.txt
goto end
)
if "%1" == "inspect" (
bandit -r %APP_NAME%
goto end
)
if "%1" == "run" (
python -m %APP_NAME%
goto end
)
if "%1" == "test" (
pytest -rA tests/
goto end
)
if "%1" == "test-cov" (
pytest -rA --cov=%APP_NAME% tests/
goto end
)
:end