-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
43 lines (36 loc) · 818 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
@ECHO off
if "%~1" == "" goto :help
if /I %1 == help goto :help
if /I %1 == lint goto :lint
if /I %1 == format goto :format
if /I %1 == test goto :test
if /I %1 == coverage goto :coverage
if /I %1 == build goto :build
goto :help
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. lint Check formatting issues
echo. format Fix formatting issues (where possible)
echo. test Run tests
echo. coverage Generate coverage report
echo. build Build python wheel package
goto :eof
:lint
ruff format . --check && ruff check .
goto :eof
:format
ruff format . && ruff check . --fix --show-fixes
goto :eof
:test
py.test
goto :eof
:coverage
coverage run -m pytest
coverage html
goto :eof
:build
rmdir /s /q .\build
rmdir /s /q .\dist
flit build
dir .\dist
goto :eof