@@ -53,44 +53,28 @@ path = "debug_toolbar/__init__.py"
53
53
54
54
[tool .ruff ]
55
55
extend-select = [
56
- # pyflakes, pycodestyle
57
- " F" , " E" , " W" ,
58
- # mmcabe
59
- # "C90",
60
- # isort
61
- " I" ,
62
- # pep8-naming
63
- # "N",
64
- # pyupgrade
65
- " UP" ,
66
- # flake8-2020
67
- # "YTT",
68
- # flake8-boolean-trap
69
- " FBT" ,
70
- # flake8-bugbear
71
- " B" ,
72
- # flake8-comprehensions
73
- " C4" ,
74
- # flake8-django
75
- " DJ" ,
76
- # flake8-pie
77
- " PIE" ,
78
- # flake8-simplify
79
- " SIM" ,
80
- # flake8-gettext
81
- " INT" ,
82
- # pygrep-hooks
83
- " PGH" ,
84
- # pylint
85
- # "PL",
86
- # unused noqa
87
- " RUF100" ,
56
+ " ASYNC" , # flake8-async
57
+ " B" , # flake8-bugbear
58
+ " C4" , # flake8-comprehensions
59
+ " C90" , # McCabe cyclomatic complexity
60
+ " DJ" , # flake8-django
61
+ " E" , # pycodestyle errors
62
+ " F" , # Pyflakes
63
+ " FBT" , # flake8-boolean-trap
64
+ " I" , # isort
65
+ " INT" , # flake8-gettext
66
+ " PGH" , # pygrep-hooks
67
+ " PIE" , # flake8-pie
68
+ " RUF100" , # Unused noqa directive
69
+ " SIM" , # flake8-simplify
70
+ " SLOT" , # flake8-slots
71
+ " UP" , # pyupgrade
72
+ " W" , # pycodestyle warnings
88
73
]
89
74
extend-ignore = [
90
- # Allow zip() without strict=
91
- " B905" ,
92
- # No line length errors
93
- " E501" ,
75
+ " B905" , # Allow zip() without strict=
76
+ " E501" , # Ignore line length violations
77
+ " SIM108" , # Use ternary operator instead of if-else-block
94
78
]
95
79
fix = true
96
80
show-fixes = true
@@ -100,14 +84,12 @@ target-version = "py38"
100
84
combine-as-imports = true
101
85
102
86
[tool .ruff .mccabe ]
103
- max-complexity = 15
87
+ max-complexity = 16
104
88
105
89
[tool .ruff .per-file-ignores ]
106
90
"*/migrat*/*" = [
107
- # Allow using PascalCase model names in migrations
108
- " N806" ,
109
- # Ignore the fact that migration files are invalid module names
110
- " N999" ,
91
+ " N806" , # Allow using PascalCase model names in migrations
92
+ " N999" , # Ignore the fact that migration files are invalid module names
111
93
]
112
94
113
95
[tool .coverage .html ]
0 commit comments