Commit d5a0220 1 parent b9c2903 commit d5a0220 Copy full SHA for d5a0220
File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,21 @@ default_language_version:
4
4
python : python3
5
5
repos :
6
6
- repo : https://github.com/astral-sh/ruff-pre-commit
7
- rev : v0.1.4
7
+ rev : v0.4.0
8
8
hooks :
9
9
- id : ruff
10
10
args : [--fix, --exit-non-zero-on-fix]
11
- - repo : https://github.com/psf/black
12
- rev : 23.10.1
13
- hooks :
14
- - id : black
11
+ - id : ruff-format
15
12
- repo : https://github.com/pre-commit/pre-commit-hooks
16
- rev : v4.5 .0
13
+ rev : v4.6 .0
17
14
hooks :
18
15
- id : check-ast
19
16
- id : check-merge-conflict
20
17
- id : detect-private-key
21
18
- id : fix-encoding-pragma
22
19
args : ["--remove"]
23
20
- repo : https://github.com/adamchainz/django-upgrade
24
- rev : 1.15 .0
21
+ rev : 1.16 .0
25
22
hooks :
26
23
- id : django-upgrade
27
24
args :
Original file line number Diff line number Diff line change 1
1
extend = " ../pyproject.toml"
2
2
3
- [isort ]
3
+ [lint . isort ]
4
4
required-imports = [
5
5
" from __future__ import annotations" ,
6
6
]
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ include = [
84
84
85
85
[tool .ruff ]
86
86
target-version = " py38"
87
+
88
+ [tool .ruff .lint ]
87
89
exclude = [
88
90
" .git" ,
89
91
" .tox" ,
@@ -100,8 +102,8 @@ select = [
100
102
" W" ,
101
103
]
102
104
103
- [tool .ruff .isort ]
105
+ [tool .ruff .lint . isort ]
104
106
force-single-line = true
105
107
106
- [tool .ruff .per-file-ignores ]
108
+ [tool .ruff .lint . per-file-ignores ]
107
109
"tests/**" = [" S101" , " S105" ]
You can’t perform that action at this time.
0 commit comments