-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_quality.bat
More file actions
54 lines (47 loc) · 1.21 KB
/
Copy pathcheck_quality.bat
File metadata and controls
54 lines (47 loc) · 1.21 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
@echo off
REM 代码质量检查
echo ========================================
echo Code Quality Check
echo ========================================
echo.
REM 安装工具
pip install black flake8 mypy -q
REM 1. 代码格式化检查
echo [1/3] Checking code formatting with Black...
black --check openspace_openhands_evolution/ tests/
if %errorlevel% neq 0 (
echo.
echo ⚠️ Code formatting issues found!
echo Run 'black openspace_openhands_evolution/ tests/' to fix
echo.
) else (
echo ✅ Code formatting OK
echo.
)
REM 2. 代码风格检查
echo [2/3] Checking code style with Flake8...
flake8 openspace_openhands_evolution/ tests/ --max-line-length=100 --ignore=E501,W503
if %errorlevel% neq 0 (
echo.
echo ⚠️ Code style issues found!
echo.
) else (
echo ✅ Code style OK
echo.
)
REM 3. 类型检查
echo [3/3] Checking type hints with MyPy...
mypy openspace_openhands_evolution/ --ignore-missing-imports
if %errorlevel% neq 0 (
echo.
echo ⚠️ Type hint issues found!
echo.
) else (
echo ✅ Type hints OK
echo.
)
echo ========================================
echo Quality Check Complete
echo ========================================
echo.
pause