Skip to content

Commit 6430879

Browse files
committed
Add toml formatting
1 parent d36c666 commit 6430879

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ repos:
1212
- id: check-added-large-files # Prevents committing large files
1313
args: ['--maxkb=500'] # Example: Limit to 500KB
1414
- id: check-merge-conflict # Checks for merge conflict strings
15-
- id: detect-private-key # Detects accidental private key commits
15+
- id: detect-private-key # Detects accidental private key commits
16+
17+
- repo: https://github.com/ComPWA/taplo-pre-commit
18+
rev: v0.9.3
19+
hooks:
20+
- id: taplo-format
21+
- id: taplo-lint
1622

1723
# ===============================================
1824
# Python Hooks
@@ -45,4 +51,4 @@ repos:
4551
- id: ruff # Linter: applies auto-fixable linting rules
4652
args: [ "--fix", "--exit-zero" ] # Apply fixes, and exit with 0 even if files were modified
4753
- id: ruff-format # Formatter: similar to Black, handles consistent code style
48-
args: [] # Check formatting, but do not auto-fix during commit; fail if not formatted
54+
args: [] # Check formatting, but do not auto-fix during commit; fail if not formatted

0 commit comments

Comments
 (0)