Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2f37245

Browse filesBrowse files
committed
docs(pre-commit): add taplo to pre-commit hook
1 parent 3d4e927 commit 2f37245
Copy full SHA for 2f37245

File tree

1 file changed

+8
-3
lines changed
Filter options

1 file changed

+8
-3
lines changed

‎.pre-commit-config.yaml

Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: debug-statements
2525
- id: no-commit-to-branch
2626
- id: check-merge-conflict
27-
- id: check-toml
27+
- id: check-toml # TOML linter (syntax checker)
2828
- id: check-yaml
2929
args: [ '--unsafe' ] # for mkdocs.yml
3030
- id: detect-private-key
@@ -55,17 +55,22 @@ repos:
5555
stages:
5656
- post-commit
5757

58+
- repo: https://github.com/ComPWA/taplo-pre-commit
59+
rev: v0.9.3
60+
hooks:
61+
- id: taplo-format
62+
5863
- repo: local
5964
hooks:
6065
- id: format
61-
name: Format
66+
name: Format Python code via Poetry
6267
language: system
6368
pass_filenames: false
6469
entry: poetry format
6570
types: [ python ]
6671

6772
- id: linter and test
68-
name: Linters
73+
name: Linters via Poetry
6974
language: system
7075
pass_filenames: false
7176
entry: poetry lint

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.