-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlint.ps1
More file actions
17 lines (13 loc) · 767 Bytes
/
Copy pathlint.ps1
File metadata and controls
17 lines (13 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Write-Host "=== 1. Running ISORT (Import Sorting) ===" -ForegroundColor Cyan
isort .
if ($LASTEXITCODE -ne 0) { Write-Host "ISORT Failed!" -ForegroundColor Red; exit 1 }
Write-Host "=== 2. Running BLACK (Code Formatting) ===" -ForegroundColor Cyan
black .
if ($LASTEXITCODE -ne 0) { Write-Host "BLACK Failed!" -ForegroundColor Red; exit 1 }
Write-Host "=== 3. Running FLAKE8 (Style Enforcement) ===" -ForegroundColor Cyan
flake8 .
if ($LASTEXITCODE -ne 0) { Write-Host "FLAKE8 Failed!" -ForegroundColor Red; exit 1 }
Write-Host "=== 4. Running MYPY (Static Type Checking) ===" -ForegroundColor Cyan
mypy .
if ($LASTEXITCODE -ne 0) { Write-Host "MYPY Failed!" -ForegroundColor Red; exit 1 }
Write-Host "✅ ALL CHECKS PASSED! Code is clean." -ForegroundColor Green