Skip to content

Commit 9713cac

Browse files
MAINT: upgrade lock files (#503)
* DX: switch to Tombi as formatter for TOML
1 parent 6f0c277 commit 9713cac

16 files changed

Lines changed: 1359 additions & 1236 deletions

.cspell.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
".pre-commit-config.yaml",
3131
".prettierignore",
3232
".readthedocs.yml",
33-
".taplo.toml",
3433
".vscode/*",
3534
"CITATION.cff",
3635
"codecov.yml",

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Performance regression
1919
runs-on: ubuntu-24.04
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@v7
2222
with:
2323
fetch-depth: 0
2424
- uses: actions/setup-python@v6

.github/workflows/ci-qrules-v0.9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Run unit tests
2323
runs-on: ubuntu-24.04
2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@v7
2626
with:
2727
fetch-depth: 0
2828
- uses: actions/setup-python@v6

.github/workflows/redirect-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
</body>
2727
</html>' > build/index.html
2828
- id: deployment
29-
uses: actions/upload-pages-artifact@v4
29+
uses: actions/upload-pages-artifact@v5
3030
with:
3131
path: build/
3232

.pre-commit-config.yaml

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ ci:
44
autoupdate_schedule: quarterly
55
skip:
66
- check-jsonschema
7+
- tombi-format
8+
- tombi-lint
79
- ty
810
- uv-lock
911

@@ -14,21 +16,9 @@ repos:
1416
- id: check-useless-excludes
1517

1618
- repo: https://github.com/ComPWA/policy
17-
rev: 0.8.13
19+
rev: 0.9.0
1820
hooks:
1921
- id: check-dev-files
20-
args:
21-
- --doc-apt-packages=graphviz
22-
- --repo-name=ampform
23-
- --repo-title=AmpForm
24-
- --type-checker=ty
25-
- id: colab-toc-visible
26-
- id: fix-nbformat-version
27-
- id: remove-empty-tags
28-
- id: set-nb-cells
29-
args: [--autolink-concat]
30-
- id: set-nb-display-name
31-
- id: strip-nb-whitespace
3222

3323
- repo: https://github.com/kynan/nbstripout
3424
rev: 0.9.1
@@ -58,8 +48,19 @@ repos:
5848
metadata.varInspector
5949
metadata.vscode
6050
51+
- repo: https://github.com/ComPWA/nbhooks
52+
rev: 0.0.1
53+
hooks:
54+
- id: colab-toc-visible
55+
- id: fix-nbformat-version
56+
- id: remove-empty-tags
57+
- id: set-nb-cells
58+
args: [--autolink-concat]
59+
- id: set-nb-display-name
60+
- id: strip-nb-whitespace
61+
6162
- repo: https://github.com/astral-sh/ruff-pre-commit
62-
rev: v0.15.16
63+
rev: v0.15.21
6364
hooks:
6465
- id: ruff-check
6566
args: [--fix]
@@ -95,25 +96,20 @@ repos:
9596
)$
9697
- id: trailing-whitespace
9798

99+
- repo: https://github.com/tombi-toml/tombi-pre-commit
100+
rev: v1.2.0
101+
hooks:
102+
- id: tombi-format
103+
- id: tombi-lint
104+
args: [--error-on-warnings]
105+
98106
- repo: https://github.com/ComPWA/prettier-pre-commit
99107
rev: v3.8.1
100108
hooks:
101109
- id: prettier
102110

103-
- repo: https://github.com/ComPWA/taplo-pre-commit
104-
rev: v0.9.3
105-
hooks:
106-
- id: taplo-format
107-
108-
- repo: https://github.com/pappasam/toml-sort
109-
rev: v0.24.4
110-
hooks:
111-
- id: toml-sort
112-
args:
113-
- --in-place
114-
115111
- repo: https://github.com/python-jsonschema/check-jsonschema
116-
rev: 0.37.2
112+
rev: 0.37.4
117113
hooks:
118114
- id: check-jsonschema
119115
name: Check CITATION.cff
@@ -126,7 +122,7 @@ repos:
126122
pass_filenames: false
127123

128124
- repo: https://github.com/streetsidesoftware/cspell-cli
129-
rev: v10.0.0
125+
rev: v10.0.1
130126
hooks:
131127
- id: cspell
132128
language_version: 25.9.0
@@ -142,17 +138,13 @@ repos:
142138
.*\.py
143139
)$
144140
145-
- repo: local
141+
- repo: https://github.com/astral-sh/ty-pre-commit
142+
rev: v0.0.59
146143
hooks:
147144
- id: ty
148-
name: ty
149-
entry: ty check
150-
args: [--no-progress, --output-format=concise]
151-
require_serial: true
152-
language: system
153-
types_or: [python, pyi, jupyter]
145+
args: [--group=types, --no-default-groups]
154146

155147
- repo: https://github.com/astral-sh/uv-pre-commit
156-
rev: 0.11.19
148+
rev: 0.11.28
157149
hooks:
158150
- id: uv-lock

.taplo.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"soulcode.vscode-unwanted-extensions",
2020
"stkb.rewrap",
2121
"streetsidesoftware.code-spell-checker",
22-
"tamasfe.even-better-toml",
22+
"tombi-toml.tombi",
2323
"yzhang.markdown-all-in-one"
2424
],
2525
"unwantedRecommendations": [
@@ -34,6 +34,7 @@
3434
"ms-python.vscode-pylance",
3535
"ms-toolsai.vscode-jupyter-slideshow",
3636
"ryanluker.vscode-coverage-gutters",
37+
"tamasfe.even-better-toml",
3738
"travisillig.vscode-json-stable-stringify",
3839
"tyriar.sort-lines"
3940
]

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"editor.defaultFormatter": "charliermarsh.ruff",
2727
"editor.rulers": [88]
2828
},
29+
"[toml]": {
30+
"editor.defaultFormatter": "tombi-toml.tombi"
31+
},
2932
"[yaml]": {
3033
"editor.defaultFormatter": "esbenp.prettier-vscode"
3134
},

0 commit comments

Comments
 (0)