Skip to content

Commit

Permalink
Update pre-commit: use taplo
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyvn committed Oct 14, 2024
1 parent 6e548e1 commit e3ecc69
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.1"
rev: v0.6.4
# Important: If the version changes, do not forget to sync it with the
# linting CI workflow
hooks:
- id: ruff
args: [ --fix ]
- id: ruff # linter
types_or: [ python, pyi, jupyter ]
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: "v2.12.0"
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: pretty-format-toml
args: [ --autofix, --indent, '2' ]
- id: nbstripout
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
8 changes: 8 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configuration file for taplo, our TOML formatter

include = ["pyproject.toml", ".taplo.toml"]

[formatting]
align_entries = false
align_comments = false
column_width = 88

0 comments on commit e3ecc69

Please sign in to comment.