Skip to content

Commit 7a0afcf

Browse files
authored
PYTHON-5302 - Run ruff before synchro in pre-commit hooks (#2274)
1 parent cce4a0d commit 7a0afcf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.pre-commit-config.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ repos:
1818
exclude: .patch
1919
exclude_types: [json]
2020

21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
# Ruff version.
23+
rev: v0.1.3
24+
hooks:
25+
- id: ruff
26+
args: ["--fix", "--show-fixes"]
27+
- id: ruff-format
28+
2129
- repo: local
2230
hooks:
2331
- id: synchro
@@ -30,14 +38,6 @@ repos:
3038
- ruff==0.1.3
3139
- unasync
3240

33-
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
# Ruff version.
35-
rev: v0.1.3
36-
hooks:
37-
- id: ruff
38-
args: ["--fix", "--show-fixes"]
39-
- id: ruff-format
40-
4141
- repo: https://github.com/adamchainz/blacken-docs
4242
rev: "1.16.0"
4343
hooks:

0 commit comments

Comments
 (0)