Skip to content

Commit 834e628

Browse files
committed
Reformat with pyproject-fmt
1 parent 580c1fc commit 834e628

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
# Run the formatter
2323
- id: ruff-format
2424
- repo: https://github.com/tox-dev/pyproject-fmt
25-
rev: v2.5.0
25+
rev: v2.5.1
2626
hooks:
2727
- id: pyproject-fmt
2828
- repo: https://github.com/adamchainz/blacken-docs

pyproject.toml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
requires = [
4-
"setuptools>=61.2",
5-
]
3+
requires = [ "setuptools>=61.2" ]
64

75
[project]
86
name = "django-csp"
@@ -13,9 +11,7 @@ license = { text = "BSD" }
1311
maintainers = [
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]" } ]
1915
classifiers = [
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" ]
4538
optional-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" ]
6354
optional-dependencies.tests = [
6455
"jinja2>=2.9.6",
6556
"pytest",
@@ -92,11 +83,7 @@ find = { namespaces = false }
9283
target-version = "py39"
9384
line-length = 150
9485
indent-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.
117104
lint.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" ]
121106
lint.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]
134117
addopts = "-vs --tb=short --ruff --ruff-format"
135118
DJANGO_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' ]
144123
strict = true
145124

146125
[tool.django-stubs]

0 commit comments

Comments
 (0)