@@ -8,9 +8,9 @@ requires = [
8
8
name = " django-debug-toolbar"
9
9
description = " A configurable set of panels that display various debug information about the current request/response."
10
10
readme = " README.rst"
11
- license = {text = " BSD-3-Clause" }
11
+ license = { text = " BSD-3-Clause" }
12
12
authors = [
13
- { name = " Rob Hudson" },
13
+ { name = " Rob Hudson" },
14
14
]
15
15
requires-python = " >=3.8"
16
16
classifiers = [
@@ -35,26 +35,26 @@ dynamic = [
35
35
" version" ,
36
36
]
37
37
dependencies = [
38
- " Django >=4.2.9" ,
38
+ " django >=4.2.9" ,
39
39
" sqlparse>=0.2" ,
40
40
]
41
- [project .urls ]
42
- Download = " https://pypi.org/project/django-debug-toolbar/"
43
- Homepage = " https://github.com/jazzband/django-debug-toolbar"
41
+ urls.Download = " https://pypi.org/project/django-debug-toolbar/"
42
+ urls.Homepage = " https://github.com/jazzband/django-debug-toolbar"
44
43
45
44
[tool .hatch .build .targets .wheel ]
46
- packages = [" debug_toolbar" ]
45
+ packages = [
46
+ " debug_toolbar" ,
47
+ ]
47
48
48
49
[tool .hatch .version ]
49
50
path = " debug_toolbar/__init__.py"
50
51
51
52
[tool .ruff ]
52
- fix = true
53
- show-fixes = true
54
53
target-version = " py38"
55
54
56
- [tool .ruff .lint ]
57
- extend-select = [
55
+ fix = true
56
+ show-fixes = true
57
+ lint.extend-select = [
58
58
" ASYNC" , # flake8-async
59
59
" B" , # flake8-bugbear
60
60
" C4" , # flake8-comprehensions
@@ -73,23 +73,17 @@ extend-select = [
73
73
" UP" , # pyupgrade
74
74
" W" , # pycodestyle warnings
75
75
]
76
- extend-ignore = [
76
+ lint. extend-ignore = [
77
77
" B905" , # Allow zip() without strict=
78
78
" E501" , # Ignore line length violations
79
79
" SIM108" , # Use ternary operator instead of if-else-block
80
80
]
81
-
82
- [tool .ruff .lint .isort ]
83
- combine-as-imports = true
84
-
85
- [tool .ruff .lint .mccabe ]
86
- max-complexity = 16
87
-
88
- [tool .ruff .lint .per-file-ignores ]
89
- "*/migrat*/*" = [
90
- " N806" , # Allow using PascalCase model names in migrations
91
- " N999" , # Ignore the fact that migration files are invalid module names
81
+ lint.per-file-ignores."*/migrat*/*" = [
82
+ " N806" , # Allow using PascalCase model names in migrations
83
+ " N999" , # Ignore the fact that migration files are invalid module names
92
84
]
85
+ lint.isort.combine-as-imports = true
86
+ lint.mccabe.max-complexity = 16
93
87
94
88
[tool .coverage .html ]
95
89
skip_covered = true
@@ -98,10 +92,15 @@ skip_empty = true
98
92
[tool .coverage .run ]
99
93
branch = true
100
94
parallel = true
101
- source = [" debug_toolbar" ]
95
+ source = [
96
+ " debug_toolbar" ,
97
+ ]
102
98
103
99
[tool .coverage .paths ]
104
- source = [" src" , " .tox/*/site-packages" ]
100
+ source = [
101
+ " src" ,
102
+ " .tox/*/site-packages" ,
103
+ ]
105
104
106
105
[tool .coverage .report ]
107
106
# Update coverage badge link in README.rst when fail_under changes
0 commit comments