Skip to content

Commit 100fc5d

Browse files
committed
Use ruff for linting and formatting
1 parent eece14b commit 100fc5d

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,19 @@ repos:
1717
- id: mixed-line-ending
1818
- id: trailing-whitespace
1919

20-
- repo: https://github.com/psf/black
21-
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
22-
hooks:
23-
- id: black
24-
2520
- repo: https://github.com/pre-commit/mirrors-prettier
2621
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0
2722
hooks:
2823
- id: prettier
2924
types_or: [yaml, toml, markdown, css, scss, javascript, json]
3025
args: [--prose-wrap=preserve]
3126

32-
- repo: https://github.com/adamchainz/blacken-docs
33-
rev: 960ead214cd1184149d366c6d27ca6c369ce46b6 # frozen: 1.16.0
34-
hooks:
35-
- id: blacken-docs
36-
37-
- repo: https://github.com/asottile/pyupgrade
38-
rev: 12af25eb252deaaecb6b259df40d01f42e716dc3 # frozen: v3.15.2
27+
- repo: https://github.com/astral-sh/ruff-pre-commit
28+
rev: "f8a3f8c471fb698229face5ed7640a64900b781e" # frozen: v0.4.4
3929
hooks:
40-
- id: pyupgrade
41-
args: [--py38-plus]
30+
- id: ruff
31+
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
32+
- id: ruff-format
4233

4334
- repo: local
4435
hooks:

0 commit comments

Comments
 (0)