File tree 2 files changed +14
-17
lines changed
2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
# See https://pre-commit.com for more information
2
2
# See https://pre-commit.com/hooks.html for more hooks
3
3
repos :
4
- - repo : https://github.com/pre-commit/pre-commit-hooks
5
- rev : v3.2.0
6
- hooks :
4
+ - repo : https://github.com/pre-commit/pre-commit-hooks
5
+ rev : v3.2.0
6
+ hooks :
7
7
- id : trailing-whitespace
8
8
- id : end-of-file-fixer
9
9
- id : check-yaml
10
10
- id : check-added-large-files
11
11
12
- - repo : https://github.com/omnilib/ufmt
13
- rev : v2.1.0
14
- hooks :
15
- - id : ufmt
16
- additional_dependencies :
17
- - black == 23.3.0
18
- - usort == 1.0.6
19
- - ufmt == 2.1.0
20
- - libcst == 1.0.1
12
+ - repo : https://github.com/astral-sh/ruff-pre-commit
13
+ # Ruff version.
14
+ rev : v0.4.4
15
+ hooks :
16
+ # Run the linter.
17
+ - id : ruff
18
+ args : [ --fix ]
19
+ # Run the formatter.
20
+ - id : ruff-format
21
+
21
22
22
23
# missing host field?
23
24
# - repo: https://github.com/pre-commit/mirrors-clang-format
Original file line number Diff line number Diff line change @@ -23,11 +23,7 @@ dependencies = [
23
23
24
24
[project .optional-dependencies ]
25
25
dev = [
26
- " black==23.3.0" ,
27
- " usort==1.0.6" ,
28
- " ufmt==2.1.0" ,
29
- " libcst==1.0.1" ,
30
- " pre-commit==3.6.0" ,
26
+ " ruff" ,
31
27
" bumpver" ,
32
28
" pip-tools" ,
33
29
" pytest" ,
You can’t perform that action at this time.
0 commit comments