@@ -8,9 +8,9 @@ requires = [
88name = " django-debug-toolbar"
99description = " A configurable set of panels that display various debug information about the current request/response."
1010readme = " README.rst"
11- license = {text = " BSD-3-Clause" }
11+ license = { text = " BSD-3-Clause" }
1212authors = [
13- { name = " Rob Hudson" },
13+ { name = " Rob Hudson" },
1414]
1515requires-python = " >=3.8"
1616classifiers = [
@@ -35,32 +35,32 @@ dynamic = [
3535 " version" ,
3636]
3737dependencies = [
38- " Django >=4.2.9" ,
38+ " django >=4.2.9" ,
3939 " sqlparse>=0.2" ,
4040]
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"
4443
4544[tool .hatch .build .targets .sdist ]
4645# Jazzband's release process is limited to 2.2 metadata
4746core-metadata-version = " 2.2"
4847
4948[tool .hatch .build .targets .wheel ]
50- packages = [" debug_toolbar" ]
49+ packages = [
50+ " debug_toolbar" ,
51+ ]
5152# Jazzband's release process is limited to 2.2 metadata
5253core-metadata-version = " 2.2"
5354
5455[tool .hatch .version ]
5556path = " debug_toolbar/__init__.py"
5657
5758[tool .ruff ]
58- fix = true
59- show-fixes = true
6059target-version = " py38"
6160
62- [tool .ruff .lint ]
63- extend-select = [
61+ fix = true
62+ show-fixes = true
63+ lint.extend-select = [
6464 " ASYNC" , # flake8-async
6565 " B" , # flake8-bugbear
6666 " C4" , # flake8-comprehensions
@@ -79,23 +79,17 @@ extend-select = [
7979 " UP" , # pyupgrade
8080 " W" , # pycodestyle warnings
8181]
82- extend-ignore = [
82+ lint. extend-ignore = [
8383 " B905" , # Allow zip() without strict=
8484 " E501" , # Ignore line length violations
8585 " SIM108" , # Use ternary operator instead of if-else-block
8686]
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
9890]
91+ lint.isort.combine-as-imports = true
92+ lint.mccabe.max-complexity = 16
9993
10094[tool .coverage .html ]
10195skip_covered = true
@@ -104,10 +98,15 @@ skip_empty = true
10498[tool .coverage .run ]
10599branch = true
106100parallel = true
107- source = [" debug_toolbar" ]
101+ source = [
102+ " debug_toolbar" ,
103+ ]
108104
109105[tool .coverage .paths ]
110- source = [" src" , " .tox/*/site-packages" ]
106+ source = [
107+ " src" ,
108+ " .tox/*/site-packages" ,
109+ ]
111110
112111[tool .coverage .report ]
113112# Update coverage badge link in README.rst when fail_under changes
0 commit comments