mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-27 05:20:36 +03:00
R: Add frontend linter to script
This commit is contained in:
parent
aeb2b08412
commit
5682da5784
|
@ -1,11 +1,14 @@
|
||||||
# Run coverage analysis
|
# Run linters
|
||||||
|
|
||||||
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
||||||
|
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
|
||||||
|
|
||||||
function RunLinters() {
|
function RunLinters() {
|
||||||
BackendLint
|
LintBackend
|
||||||
|
LintFrontend
|
||||||
}
|
}
|
||||||
|
|
||||||
function BackendLint() {
|
function LintBackend() {
|
||||||
$pylint = "$backend\venv\Scripts\pylint.exe"
|
$pylint = "$backend\venv\Scripts\pylint.exe"
|
||||||
$mypy = "$backend\venv\Scripts\mypy.exe"
|
$mypy = "$backend\venv\Scripts\mypy.exe"
|
||||||
|
|
||||||
|
@ -15,4 +18,9 @@ function BackendLint() {
|
||||||
& $mypy project apps
|
& $mypy project apps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function LintFrontend() {
|
||||||
|
Set-Location $frontend
|
||||||
|
& npm run lint
|
||||||
|
}
|
||||||
|
|
||||||
RunLinters
|
RunLinters
|
Loading…
Reference in New Issue
Block a user