Portal/scripts/dev/RunLint.ps1
IRBorisov 2759f10d09
Some checks failed
Backend CI / build (3.12) (push) Has been cancelled
Frontend CI / build (18.x) (push) Has been cancelled
Initial commit
2024-06-07 20:17:03 +03:00

18 lines
388 B
PowerShell

# Run coverage analysis
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
function RunLinters() {
BackendLint
}
function BackendLint() {
$pylint = "$backend\venv\Scripts\pylint.exe"
$mypy = "$backend\venv\Scripts\mypy.exe"
Set-Location $backend
$env:DJANGO_SETTINGS_MODULE = "project.settings"
& $pylint project apps
& $mypy project apps
}
RunLinters