File tree 3 files changed +25
-20
lines changed
3 files changed +25
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,15 +13,10 @@ repos:
13
13
hooks :
14
14
- id : black
15
15
16
- - repo : https://github.com/PyCQA/flake8
17
- rev : 7.0.0
16
+ - repo : https://github.com/astral-sh/ruff-pre-commit
17
+ rev : v0.4.4
18
18
hooks :
19
- - id : flake8
20
-
21
- - repo : https://github.com/timothycrosley/isort
22
- rev : 5.13.2
23
- hooks :
24
- - id : isort
19
+ - id : ruff
25
20
26
21
- repo : https://github.com/asottile/pyupgrade
27
22
rev : v3.15.2
Original file line number Diff line number Diff line change @@ -38,3 +38,25 @@ DJANGO_SETTINGS_MODULE = "core.settings"
38
38
python_files = [
39
39
" test_*.py" ,
40
40
]
41
+
42
+ [tool .ruff ]
43
+ extend-exclude = [
44
+ " .env" ,
45
+ ]
46
+ target-version = " py310"
47
+
48
+ [tool .ruff .lint ]
49
+ extend-select = [
50
+ " A" , # flake8-builtins
51
+ " I" , # isort
52
+ " INP" , # flake8-no-pep420
53
+ " ISC" , # flake8-implicit-str-concat
54
+ " UP" , # pyupgrade
55
+ " W" , # pycodestyle warning
56
+ ]
57
+ extend-ignore = [
58
+ " E731" , # allow lambda assignment
59
+ ]
60
+
61
+ [tool .ruff .lint .isort ]
62
+ lines-after-imports = 2
You can’t perform that action at this time.
0 commit comments