@@ -3,6 +3,24 @@ exclude = [
33 " tests/lib/**/*" ,
44]
55
6+ [commands ."ruff for linting" ]
7+ type = " both"
8+ include = [ " **/*.py" ]
9+ cmd = " ruff"
10+ lint_flags = [ " check" ]
11+ tidy_flags = [ " check" , " --fix" ]
12+ ok_exit_codes = 0
13+ lint_failure_exit_codes = 1
14+
15+ [commands ."ruff for tidying" ]
16+ type = " both"
17+ include = [ " **/*.py" ]
18+ cmd = " ruff"
19+ lint_flags = [ " format" , " --check" ]
20+ tidy_flags = [ " format" ]
21+ ok_exit_codes = 0
22+ lint_failure_exit_codes = 1
23+
624[commands .typos ]
725type = " both"
826include = " **/*"
@@ -13,21 +31,10 @@ tidy_flags = "--write-changes"
1331ok-exit-codes = 0
1432lint-failure-exit-codes = 2
1533
16- [commands .perltidy ]
17- type = " both"
18- include = [ " **/*.{pl,pm,t,psgi}" ]
19- exclude = " tests/lib/**"
20- cmd = [ " perltidy" , " --profile=$PRECIOUS_ROOT/perltidyrc" ]
21- lint_flags = [ " --assert-tidy" , " --no-standard-output" , " --outfile=/dev/null" ]
22- tidy_flags = [ " --backup-and-modify-in-place" , " --backup-file-extension=/" ]
23- ok_exit_codes = 0
24- lint_failure_exit_codes = 2
25- ignore_stderr = " Begin Error Output Stream"
26-
2734[commands .prettier-md ]
2835type = " both"
2936include = [ " **/*.md" ]
30- cmd = [ " ./node_modules/.bin/ prettier" , " --no-config" , " --print-width" , " 100" , " --prose-wrap" , " always" ]
37+ cmd = [ " prettier" , " --no-config" , " --print-width" , " 100" , " --prose-wrap" , " always" ]
3138lint_flags = " --check"
3239tidy_flags = " --write"
3340ok_exit_codes = 0
@@ -37,7 +44,7 @@ ignore_stderr = [ "Code style issues" ]
3744[commands .prettier-yml ]
3845type = " both"
3946include = [ " **/*.yml" ]
40- cmd = [ " ./node_modules/.bin/ prettier" , " --no-config" ]
47+ cmd = [ " prettier" , " --no-config" ]
4148lint_flags = " --check"
4249tidy_flags = " --write"
4350ok_exit_codes = 0
0 commit comments