Skip to content

Commit 715d471

Browse files
[pre-commit.ci] pre-commit autoupdate (#945)
<!--pre-commit.ci start--> updates: - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.0.4](tox-dev/pyproject-fmt@1.8.0...2.0.4) - [github.com/adamchainz/django-upgrade: 1.16.0 → 1.17.0](adamchainz/django-upgrade@1.16.0...1.17.0) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Johnson <[email protected]>
1 parent 4dea87e commit 715d471

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/tox-dev/pyproject-fmt
17-
rev: 1.8.0
17+
rev: 2.0.4
1818
hooks:
1919
- id: pyproject-fmt
2020
- repo: https://github.com/tox-dev/tox-ini-fmt
@@ -33,7 +33,7 @@ repos:
3333
- id: pyupgrade
3434
args: [--py38-plus]
3535
- repo: https://github.com/adamchainz/django-upgrade
36-
rev: 1.16.0
36+
rev: 1.17.0
3737
hooks:
3838
- id: django-upgrade
3939
args: [--target-version, '3.2']

pyproject.toml

+17-14
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ requires = [
88
name = "django-cors-headers"
99
version = "4.3.1"
1010
description = "django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)."
11-
readme = {file = "README.rst", content-type = "text/x-rst"}
11+
readme = { file = "README.rst", content-type = "text/x-rst" }
1212
keywords = [
1313
"api",
1414
"cors",
1515
"django",
1616
"middleware",
1717
"rest",
1818
]
19-
license = {text = "MIT"}
20-
maintainers = [{name = "Adam Johnson", email = "[email protected]"}]
21-
authors = [{name = "Otto Yiu", email = "[email protected]"}]
19+
license = { text = "MIT" }
20+
maintainers = [
21+
{ name = "Adam Johnson", email = "[email protected]" },
22+
]
23+
authors = [
24+
{ name = "Otto Yiu", email = "[email protected]" },
25+
]
2226
requires-python = ">=3.8"
2327
classifiers = [
2428
"Development Status :: 5 - Production/Stable",
@@ -44,16 +48,15 @@ classifiers = [
4448
]
4549
dependencies = [
4650
"asgiref>=3.6",
47-
"Django>=3.2",
51+
"django>=3.2",
4852
]
49-
[project.urls]
50-
Changelog = "https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst"
51-
Funding = "https://adamj.eu/books/"
52-
Repository = "https://github.com/adamchainz/django-cors-headers"
53+
urls.Changelog = "https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst"
54+
urls.Funding = "https://adamj.eu/books/"
55+
urls.Repository = "https://github.com/adamchainz/django-cors-headers"
5356

5457
[tool.isort]
5558
add_imports = [
56-
"from __future__ import annotations"
59+
"from __future__ import annotations",
5760
]
5861
force_single_line = true
5962
profile = "black"
@@ -70,14 +73,14 @@ django_find_project = false
7073
branch = true
7174
parallel = true
7275
source = [
73-
"corsheaders",
74-
"tests",
76+
"corsheaders",
77+
"tests",
7578
]
7679

7780
[tool.coverage.paths]
7881
source = [
79-
"src",
80-
".tox/**/site-packages",
82+
"src",
83+
".tox/**/site-packages",
8184
]
8285

8386
[tool.coverage.report]

0 commit comments

Comments
 (0)