Skip to content

Commit 5ec7a8b

Browse files
committed
Update precommit and add a formatter for pyproject.toml.
1 parent 32c2322 commit 5ec7a8b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
66
# Note the order is intentional to avoid multiple passes of the hooks
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.11.13
9+
rev: v0.12.12
1010
hooks:
1111
- id: ruff
1212
args: [--fix, --exit-non-zero-on-fix, --show-fixes, --unsafe-fixes]
1313
- id: ruff-format
14+
- repo: https://github.com/ComPWA/taplo-pre-commit
15+
rev: v0.9.3
16+
hooks:
17+
- id: taplo-format
18+
- id: taplo-lint
1419
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v5.0.0
20+
rev: v6.0.0
1621
hooks:
1722
- id: trailing-whitespace
1823
- id: end-of-file-fixer
19-
exclude: '.*\.pth$'
24+
- id: mixed-line-ending
25+
args: [--fix=lf]
2026
- id: debug-statements

.taplo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[formatting]
2+
array_auto_collapse = false
3+
indent_string = " "

0 commit comments

Comments
 (0)