Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#945)
Browse files Browse the repository at this point in the history
<!--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 <me@adamj.eu>
  • Loading branch information
pre-commit-ci[bot] and adamchainz authored May 14, 2024
1 parent 4dea87e commit 715d471
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.0.4
hooks:
- id: pyproject-fmt
- repo: https://github.com/tox-dev/tox-ini-fmt
Expand All @@ -33,7 +33,7 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.16.0
rev: 1.17.0
hooks:
- id: django-upgrade
args: [--target-version, '3.2']
Expand Down
31 changes: 17 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ requires = [
name = "django-cors-headers"
version = "4.3.1"
description = "django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)."
readme = {file = "README.rst", content-type = "text/x-rst"}
readme = { file = "README.rst", content-type = "text/x-rst" }
keywords = [
"api",
"cors",
"django",
"middleware",
"rest",
]
license = {text = "MIT"}
maintainers = [{name = "Adam Johnson", email = "me@adamj.eu"}]
authors = [{name = "Otto Yiu", email = "otto@live.ca"}]
license = { text = "MIT" }
maintainers = [
{ name = "Adam Johnson", email = "me@adamj.eu" },
]
authors = [
{ name = "Otto Yiu", email = "otto@live.ca" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -44,16 +48,15 @@ classifiers = [
]
dependencies = [
"asgiref>=3.6",
"Django>=3.2",
"django>=3.2",
]
[project.urls]
Changelog = "https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst"
Funding = "https://adamj.eu/books/"
Repository = "https://github.com/adamchainz/django-cors-headers"
urls.Changelog = "https://github.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst"
urls.Funding = "https://adamj.eu/books/"
urls.Repository = "https://github.com/adamchainz/django-cors-headers"

[tool.isort]
add_imports = [
"from __future__ import annotations"
"from __future__ import annotations",
]
force_single_line = true
profile = "black"
Expand All @@ -70,14 +73,14 @@ django_find_project = false
branch = true
parallel = true
source = [
"corsheaders",
"tests",
"corsheaders",
"tests",
]

[tool.coverage.paths]
source = [
"src",
".tox/**/site-packages",
"src",
".tox/**/site-packages",
]

[tool.coverage.report]
Expand Down

0 comments on commit 715d471

Please sign in to comment.