Skip to content

Commit cf1dcf8

Browse files
committed
Update pre-commit hooks
1 parent bdac587 commit cf1dcf8

1 file changed

Lines changed: 27 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.3.0 # Replace by any tag/version: https://github.com/psf/black/tags
4-
hooks:
5-
- id: black
6-
language_version: python3 # Should be a command that runs python3.6+
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-toml
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
- id: detect-private-key
10+
- id: pretty-format-json
11+
args: [--autofix]
12+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
13+
rev: v2.15.0
14+
hooks:
15+
- id: pretty-format-toml
16+
args: [--autofix]
17+
- id: pretty-format-yaml
18+
args: [--autofix]
19+
- repo: https://github.com/astral-sh/ruff-pre-commit
20+
rev: v0.12.7
21+
hooks:
22+
# Run the linter.
23+
- id: ruff
24+
types_or: [python, pyi, jupyter]
25+
args: [--fix, --show-fixes]
26+
# Run the formatter.
27+
- id: ruff-format
28+
types_or: [python, pyi, jupyter]

0 commit comments

Comments
 (0)