forked from chaosen315/osr-trpg-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.bat
More file actions
37 lines (31 loc) · 736 Bytes
/
verify.bat
File metadata and controls
37 lines (31 loc) · 736 Bytes
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
@echo off
:: Set virtual environment Python path
set VENV_PYTHON=.venv\Scripts\python.exe
echo Starting project verification...
echo =================
echo 1. Running ruff code check...
%VENV_PYTHON% -m ruff check .
if %ERRORLEVEL% neq 0 (
echo Error: ruff check failed!
exit /b 1
)
echo ruff check passed!
echo.
echo 2. Running mypy type check...
%VENV_PYTHON% -m mypy .
if %ERRORLEVEL% neq 0 (
echo Error: mypy check failed!
exit /b 1
)
echo mypy check passed!
echo.
echo 3. Running unit tests...
%VENV_PYTHON% -m pytest
if %ERRORLEVEL% neq 0 (
echo Error: unit tests failed!
exit /b 1
)
echo Unit tests passed!
echo.
echo All verifications passed! Project quality check completed.
echo =================