mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
27 lines
582 B
PowerShell
27 lines
582 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
|
|
& npm run lint:playwright
|
|
}
|
|
|
|
RunLinters |