File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11$lintOutput = (Resolve-Path .\testOutput\lint\)
2- $lintOutput = " $lintOutput \PR-lint.xml"
32.\runlint.bat " $lintOutput "
43if ($LastExitCode -ne 0 ) {
54 Set-AppveyorBuildVariable " testFailExitCode" $LastExitCode
Original file line number Diff line number Diff line change 11@ echo off
2- rem runlint [< output file > ]
3- rem Lints the entire repository
2+ rem runlint [< output dir > ]
3+ rem Lints and formats all python files
44set hereOrig = %~dp0
55set here = %hereOrig%
66if #%hereOrig:~-1 % # == #\# set here = %hereOrig:~0 ,-1 %
77set scriptsDir = %here% \venvUtils
88
9- if " %1 " NEQ " " set ruffArgs = --output-file=%1 --output-format=junit
10- call " %scriptsDir% \venvCmd.bat" ruff check --fix %ruffArgs%
9+ set ruffCheckArgs =
10+ set ruffFormatArgs =
11+ if " %1 " NEQ " " set ruffCheckArgs = --output-file=%1 /PR-lint.xml --output-format=junit
12+ if " %1 " NEQ " " set ruffFormatArgs = --diff > %1 /lint-diff.diff
13+ call " %scriptsDir% \venvCmd.bat" ruff check --fix %ruffCheckArgs%
14+ if ERRORLEVEL 1 exit /b %ERRORLEVEL%
15+ call " %scriptsDir% \venvCmd.bat" ruff format %ruffFormatArgs%
1116if ERRORLEVEL 1 exit /b %ERRORLEVEL%
You can’t perform that action at this time.
0 commit comments