Skip to content

Commit ff691ae

Browse files
committed
Update precious config for mise and Python changes
1 parent 8713e58 commit ff691ae

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

precious.toml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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]
725
type = "both"
826
include = "**/*"
@@ -13,21 +31,10 @@ tidy_flags = "--write-changes"
1331
ok-exit-codes = 0
1432
lint-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]
2835
type = "both"
2936
include = [ "**/*.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" ]
3138
lint_flags = "--check"
3239
tidy_flags = "--write"
3340
ok_exit_codes = 0
@@ -37,7 +44,7 @@ ignore_stderr = [ "Code style issues" ]
3744
[commands.prettier-yml]
3845
type = "both"
3946
include = [ "**/*.yml" ]
40-
cmd = [ "./node_modules/.bin/prettier", "--no-config" ]
47+
cmd = [ "prettier", "--no-config" ]
4148
lint_flags = "--check"
4249
tidy_flags = "--write"
4350
ok_exit_codes = 0

0 commit comments

Comments
 (0)