Skip to content

Commit d837684

Browse files
committed
Update pre-commit config
1 parent fdc178e commit d837684

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.4.2
45
hooks:
5-
- id: trailing-whitespace
6-
- id: check-added-large-files
7-
- id: check-ast
8-
- id: fix-byte-order-marker
9-
- id: check-case-conflict
10-
- id: check-docstring-first
11-
- id: check-merge-conflict
12-
- id: detect-private-key
13-
- id: end-of-file-fixer
14-
15-
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
# Ruff version.
17-
rev: v0.3.0
18-
hooks:
19-
# Run the linter.
20-
- id: ruff
21-
args: [ --fix ]
22-
# Run the formatter.
23-
- id: ruff-format
6+
# Run the linter.
7+
- id: ruff
8+
args: [ --fix ]
9+
# Run the formatter.
10+
- id: ruff-format

0 commit comments

Comments
 (0)