@@ -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,32 +35,32 @@ 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 .sdist ]
46
45
# Jazzband's release process is limited to 2.2 metadata
47
46
core-metadata-version = " 2.2"
48
47
49
48
[tool .hatch .build .targets .wheel ]
50
- packages = [" debug_toolbar" ]
49
+ packages = [
50
+ " debug_toolbar" ,
51
+ ]
51
52
# Jazzband's release process is limited to 2.2 metadata
52
53
core-metadata-version = " 2.2"
53
54
54
55
[tool .hatch .version ]
55
56
path = " debug_toolbar/__init__.py"
56
57
57
58
[tool .ruff ]
58
- fix = true
59
- show-fixes = true
60
59
target-version = " py38"
61
60
62
- [tool .ruff .lint ]
63
- extend-select = [
61
+ fix = true
62
+ show-fixes = true
63
+ lint.extend-select = [
64
64
" ASYNC" , # flake8-async
65
65
" B" , # flake8-bugbear
66
66
" C4" , # flake8-comprehensions
@@ -79,23 +79,17 @@ extend-select = [
79
79
" UP" , # pyupgrade
80
80
" W" , # pycodestyle warnings
81
81
]
82
- extend-ignore = [
82
+ lint. extend-ignore = [
83
83
" B905" , # Allow zip() without strict=
84
84
" E501" , # Ignore line length violations
85
85
" SIM108" , # Use ternary operator instead of if-else-block
86
86
]
87
-
88
- [tool .ruff .lint .isort ]
89
- combine-as-imports = true
90
-
91
- [tool .ruff .lint .mccabe ]
92
- max-complexity = 16
93
-
94
- [tool .ruff .lint .per-file-ignores ]
95
- "*/migrat*/*" = [
96
- " N806" , # Allow using PascalCase model names in migrations
97
- " N999" , # Ignore the fact that migration files are invalid module names
87
+ lint.per-file-ignores."*/migrat*/*" = [
88
+ " N806" , # Allow using PascalCase model names in migrations
89
+ " N999" , # Ignore the fact that migration files are invalid module names
98
90
]
91
+ lint.isort.combine-as-imports = true
92
+ lint.mccabe.max-complexity = 16
99
93
100
94
[tool .coverage .html ]
101
95
skip_covered = true
@@ -104,10 +98,15 @@ skip_empty = true
104
98
[tool .coverage .run ]
105
99
branch = true
106
100
parallel = true
107
- source = [" debug_toolbar" ]
101
+ source = [
102
+ " debug_toolbar" ,
103
+ ]
108
104
109
105
[tool .coverage .paths ]
110
- source = [" src" , " .tox/*/site-packages" ]
106
+ source = [
107
+ " src" ,
108
+ " .tox/*/site-packages" ,
109
+ ]
111
110
112
111
[tool .coverage .report ]
113
112
# Update coverage badge link in README.rst when fail_under changes
0 commit comments