1- exclude = [
2- " target" ,
3- " tests/lib/**/*" ,
4- ]
1+ exclude = [" target" ]
52
63[commands ."ruff for linting" ]
74type = " both"
8- include = [ " **/*.py" ]
5+ include = [" **/*.py" ]
96cmd = " ruff"
10- lint_flags = [ " check" ]
11- tidy_flags = [ " check" , " --fix" ]
7+ lint_flags = [" check" ]
8+ tidy_flags = [" check" , " --fix" ]
129ok_exit_codes = 0
1310lint_failure_exit_codes = 1
1411
1512[commands ."ruff for tidying" ]
1613type = " both"
17- include = [ " **/*.py" ]
14+ include = [" **/*.py" ]
1815cmd = " ruff"
19- lint_flags = [ " format" , " --check" ]
20- tidy_flags = [ " format" ]
16+ lint_flags = [" format" , " --check" ]
17+ tidy_flags = [" format" ]
2118ok_exit_codes = 0
2219lint_failure_exit_codes = 1
2320
24- [commands .typos ]
21+ [commands .prettier ]
2522type = " both"
26- include = " **/*"
27- exclude = " **/*.tar.gz"
28- invoke = " once"
29- cmd = " typos"
30- tidy_flags = " --write-changes"
23+ include = [" **/*.md" , " **/*.yml" ]
24+ cmd = [" prettier" , " --no-config" , " --print-width" , " 100" , " --prose-wrap" , " always" ]
25+ lint-flags = " --check"
26+ tidy-flags = " --write"
3127ok-exit-codes = 0
32- lint-failure-exit-codes = 2
33-
34- [commands .prettier-md ]
35- type = " both"
36- include = [ " **/*.md" ]
37- cmd = [ " prettier" , " --no-config" , " --print-width" , " 100" , " --prose-wrap" , " always" ]
38- lint_flags = " --check"
39- tidy_flags = " --write"
40- ok_exit_codes = 0
41- lint_failure_exit_codes = 1
42- ignore_stderr = [ " Code style issues" ]
43-
44- [commands .prettier-yml ]
45- type = " both"
46- include = [ " **/*.yml" ]
47- cmd = [ " prettier" , " --no-config" ]
48- lint_flags = " --check"
49- tidy_flags = " --write"
50- ok_exit_codes = 0
51- lint_failure_exit_codes = 1
52- ignore_stderr = [ " Code style issues" ]
28+ lint-failure-exit-codes = 1
29+ ignore-stderr = [" Code style issues" ]
5330
5431[commands .omegasort-gitignore ]
5532type = " both"
5633include = " **/.gitignore"
57- cmd = [ " omegasort" , " --sort" , " path" , " --unique" ]
58- lint_flags = " --check"
59- tidy_flags = " --in-place"
60- ok_exit_codes = 0
61- lint_failure_exit_codes = 1
62- ignore_stderr = [
63- " The .+ file is not sorted" ,
64- " The .+ file is not unique" ,
65- ]
34+ cmd = [" omegasort" , " --sort" , " path" , " --unique" ]
35+ lint-flags = " --check"
36+ tidy-flags = " --in-place"
37+ ok-exit-codes = 0
38+ lint-failure-exit-codes = 1
39+ ignore-stderr = [" The .+ file is not sorted" , " The .+ file is not unique" ]
6640
6741[commands .shellcheck ]
6842type = " lint"
@@ -79,3 +53,20 @@ lint_flags = "--diff"
7953tidy_flags = " --write"
8054ok_exit_codes = 0
8155lint_failure_exit_codes = 1
56+
57+ [commands .typos ]
58+ type = " lint"
59+ include = " **/*"
60+ cmd = " typos"
61+ invoke = " once"
62+ ok-exit-codes = 0
63+ lint-failure-exit-codes = 2
64+
65+ [commands .taplo ]
66+ type = " both"
67+ include = " **/*.toml"
68+ cmd = [" taplo" , " format" , " --option" , " indent_string= " , " --option" , " column_width=100" ]
69+ lint_flags = " --check"
70+ ok_exit_codes = 0
71+ lint_failure_exit_codes = 1
72+ ignore_stderr = " INFO taplo.+"
0 commit comments