Skip to content

Commit 605de21

Browse files
committed
chore(pre-commit): replace black with ruff
1 parent 0fe1a6d commit 605de21

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
6-
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
exclude: simtools/simtools.json
10-
- id: check-yaml
11-
- id: check-added-large-files
12-
- repo: https://github.com/psf/black
13-
rev: 23.3.0
14-
hooks:
15-
- id: black
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
exclude: simtools/simtools.json
10+
- id: check-yaml
11+
- id: check-added-large-files
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
rev: v0.11.8
14+
hooks:
15+
- id: ruff
16+
args: [ --fix ]
17+
- id: ruff-format

0 commit comments

Comments
 (0)