File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 14
14
- id : check-merge-conflict
15
15
- id : mixed-line-ending
16
16
17
- - repo : https://github.com/charliermarsh /ruff-pre-commit
18
- rev : " v0.0.264 "
17
+ - repo : https://github.com/astral-sh /ruff-pre-commit
18
+ rev : v0.2.1
19
19
hooks :
20
20
- id : ruff
21
21
args : [--fix, --exit-non-zero-on-fix]
Original file line number Diff line number Diff line change 1
1
[tool .ruff ]
2
- # https://beta.ruff.rs/docs/configuration/
2
+ exclude = [
3
+ " .eggs" ,
4
+ " .git" ,
5
+ " .mypy_cache" ,
6
+ " .ruff_cache" ,
7
+ " .env" ,
8
+ " .venv" ,
9
+ " **migrations/**" ,
10
+ " node_modules" ,
11
+ " venv" ,
12
+ ]
3
13
line-length = 120
14
+
15
+ [tool .ruff .lint ]
16
+ # https://beta.ruff.rs/docs/configuration/
4
17
select = [
5
18
" E" , # pycodestyle errors
6
19
" W" , # pycodestyle warnings
@@ -15,18 +28,6 @@ select = [
15
28
" UP" , # pyupgrade
16
29
]
17
30
18
- exclude = [
19
- " .eggs" ,
20
- " .git" ,
21
- " .mypy_cache" ,
22
- " .ruff_cache" ,
23
- " .env" ,
24
- " .venv" ,
25
- " **migrations/**" ,
26
- " node_modules" ,
27
- " venv" ,
28
- ]
29
-
30
31
ignore = [
31
32
" B006" , # Do not use mutable data structures for argument defaults
32
33
" B011" , # tests use assert False
@@ -43,12 +44,12 @@ ignore = [
43
44
" UP007" , # Use `X | Y` for type annotations
44
45
]
45
46
46
- [tool .ruff .per-file-ignores ]
47
+ [tool .ruff .lint . per-file-ignores ]
47
48
"__init__.py" = [
48
49
" F401" # unused-import
49
50
]
50
51
51
- [tool .ruff .isort ]
52
+ [tool .ruff .lint . isort ]
52
53
combine-as-imports = true
53
54
known-first-party = [
54
55
" djangocms_versioning" ,
You can’t perform that action at this time.
0 commit comments