11[build-system ]
22build-backend = " setuptools.build_meta"
3- requires = [
4- " setuptools>=61.2" ,
5- ]
3+ requires = [ " setuptools>=61.2" ]
64
75[project ]
86name = " django-csp"
@@ -13,9 +11,7 @@ license = { text = "BSD" }
1311maintainers = [
1412 {
name =
" Mozilla MEAO team" ,
email =
" [email protected] " },
1513]
16- authors = [
17- {
name =
" James Socol" ,
email =
" [email protected] " },
18- ]
14+ authors = [ {
name =
" James Socol" ,
email =
" [email protected] " } ]
1915classifiers = [
2016 " Development Status :: 5 - Production/Stable" ,
2117 " Environment :: Web Environment" ,
@@ -38,10 +34,7 @@ classifiers = [
3834 " Programming Language :: Python :: Implementation :: PyPy" ,
3935 " Topic :: Software Development :: Libraries :: Python Modules" ,
4036]
41- dependencies = [
42- " django>=4.2" ,
43- " packaging" ,
44- ]
37+ dependencies = [ " django>=4.2" , " packaging" ]
4538optional-dependencies.dev = [
4639 " django-stubs[compatible-mypy]" ,
4740 " jinja2>=2.9.6" ,
@@ -57,9 +50,7 @@ optional-dependencies.dev = [
5750 " tox-gh-actions" ,
5851 " types-setuptools" ,
5952]
60- optional-dependencies.jinja2 = [
61- " jinja2>=2.9.6" ,
62- ]
53+ optional-dependencies.jinja2 = [ " jinja2>=2.9.6" ]
6354optional-dependencies.tests = [
6455 " jinja2>=2.9.6" ,
6556 " pytest" ,
@@ -92,11 +83,7 @@ find = { namespaces = false }
9283target-version = " py39"
9384line-length = 150
9485indent-width = 4
95- extend-exclude = [
96- " build" ,
97- " dist" ,
98- " docs" ,
99- ]
86+ extend-exclude = [ " build" , " dist" , " docs" ]
10087
10188# Set what ruff should check for.
10289# See https://docs.astral.sh//ruff/rules/ for a list of rules.
@@ -115,9 +102,7 @@ lint.select = [
115102]
116103# Allow unused variables when underscore-prefixed.
117104lint.dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
118- lint.isort.known-first-party = [
119- " csp" ,
120- ]
105+ lint.isort.known-first-party = [ " csp" ]
121106lint.isort.section-order = [
122107 " future" ,
123108 " standard-library" ,
@@ -126,21 +111,15 @@ lint.isort.section-order = [
126111 " first-party" ,
127112 " local-folder" ,
128113]
129- lint.isort.sections.django = [
130- " django" ,
131- ]
114+ lint.isort.sections.django = [ " django" ]
132115
133116[tool .pytest .ini_options ]
134117addopts = " -vs --tb=short --ruff --ruff-format"
135118DJANGO_SETTINGS_MODULE = " csp.tests.settings"
136119
137120[tool .mypy ]
138- plugins = [
139- " mypy_django_plugin.main" ,
140- ]
141- exclude = [
142- ' ^build/lib' ,
143- ]
121+ plugins = [ " mypy_django_plugin.main" ]
122+ exclude = [ ' ^build/lib' ]
144123strict = true
145124
146125[tool .django-stubs ]
0 commit comments