Skip to content

Commit 68372bc

Browse files
committed
Update dev tool versions and update precious config
1 parent e39acaf commit 68372bc

File tree

3 files changed

+52
-57
lines changed

3 files changed

+52
-57
lines changed

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,13 @@ runs:
177177
--fake-tag "$FAKE_TAG"
178178
env:
179179
ACTION_GH_RELEASE_PARAMETERS: ${{ inputs.action-gh-release-parameters }}
180-
if: ( github.ref_type == 'tag' && startsWith( github.ref_name, inputs.release-tag-prefix ) ) || inputs._force-release-for-testing
180+
if:
181+
( github.ref_type == 'tag' && startsWith( github.ref_name, inputs.release-tag-prefix ) ) ||
182+
inputs._force-release-for-testing
181183

182184
- name: Publish GitHub release
183185
uses: softprops/action-gh-release@v2
184186
with: ${{ steps.action-gh-release-parameters.outputs }}
185-
if: ( github.ref_type == 'tag' && startsWith( github.ref_name, inputs.release-tag-prefix ) ) || inputs._force-release-for-testing
187+
if:
188+
( github.ref_type == 'tag' && startsWith( github.ref_name, inputs.release-tag-prefix ) ) ||
189+
inputs._force-release-for-testing

mise.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tools]
2-
node = "22.11.0"
3-
"npm:prettier" = "3.4.1"
4-
ruff = "0.8.3"
5-
shellcheck = "0.10.0"
6-
shfmt = "3.10.0"
7-
taplo = "0.9.3"
8-
typos = "1.28.1"
9-
"ubi:houseabsolute/omegasort" = "0.1.3"
10-
"ubi:houseabsolute/precious" = "0.7.3"
2+
node = "24.14.0"
3+
"npm:prettier" = "3.8.1"
4+
"github:astral-sh/ruff" = "0.15.6"
5+
shellcheck = "0.11.0"
6+
shfmt = "3.13.0"
7+
taplo = "0.10.0"
8+
typos = "1.44.0"
9+
"github:houseabsolute/omegasort" = "0.1.3"
10+
"github:houseabsolute/precious" = "0.10.2"

precious.toml

Lines changed: 37 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,42 @@
1-
exclude = [
2-
"target",
3-
"tests/lib/**/*",
4-
]
1+
exclude = ["target"]
52

63
[commands."ruff for linting"]
74
type = "both"
8-
include = [ "**/*.py" ]
5+
include = ["**/*.py"]
96
cmd = "ruff"
10-
lint_flags = [ "check" ]
11-
tidy_flags = [ "check", "--fix" ]
7+
lint_flags = ["check"]
8+
tidy_flags = ["check", "--fix"]
129
ok_exit_codes = 0
1310
lint_failure_exit_codes = 1
1411

1512
[commands."ruff for tidying"]
1613
type = "both"
17-
include = [ "**/*.py" ]
14+
include = ["**/*.py"]
1815
cmd = "ruff"
19-
lint_flags = [ "format", "--check" ]
20-
tidy_flags = [ "format" ]
16+
lint_flags = ["format", "--check"]
17+
tidy_flags = ["format"]
2118
ok_exit_codes = 0
2219
lint_failure_exit_codes = 1
2320

24-
[commands.typos]
21+
[commands.prettier]
2522
type = "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"
3127
ok-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]
5532
type = "both"
5633
include = "**/.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]
6842
type = "lint"
@@ -79,3 +53,20 @@ lint_flags = "--diff"
7953
tidy_flags = "--write"
8054
ok_exit_codes = 0
8155
lint_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

Comments
 (0)