ConceptPortal-public/scripts/dev/RunLint.ps1
Ivan ac3dae7c81
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
R: Simplify eslint integration
2025-03-03 12:44:29 +03:00

26 lines
554 B
PowerShell

# Run linters
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
function RunLinters() {
LintBackend
LintFrontend
}
function LintBackend() {
$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 --show-traceback
}
function LintFrontend() {
Set-Location $frontend
& npm run lint
}
RunLinters