Skip to content

Commit 58afa8b

Browse files
committed
Replace black/isort with ruff in pre-commit
1 parent 7939a0a commit 58afa8b

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,16 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v5.0.0
44
hooks:
5-
- id: check-toml
65
- id: check-yaml
76
args:
87
- "--unsafe"
98
- id: end-of-file-fixer
109
- id: trailing-whitespace
11-
- repo: https://github.com/psf/black
12-
rev: 25.1.0
13-
hooks:
14-
- id: black
15-
# It is recommended to specify the latest version of Python
16-
# supported by your project here, or alternatively use
17-
# pre-commit's default_language_version, see
18-
# https://pre-commit.com/#top_level-default_language_version
19-
language_version: python3.11
20-
- repo: https://github.com/pycqa/isort
21-
rev: 6.0.0
22-
hooks:
23-
- id: isort
24-
name: isort (python)
10+
- id: check-toml
2511
- repo: https://github.com/astral-sh/ruff-pre-commit
2612
# Ruff version.
2713
rev: v0.9.4
2814
hooks:
2915
- id: ruff
16+
args: [--fix]
17+
- id: ruff-format

0 commit comments

Comments
 (0)