From 715d4716287eb1fa8dbb43a0ddf79bb6358d18ae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 22:38:32 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#945) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.0.4](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.0.4) - [github.com/adamchainz/django-upgrade: 1.16.0 → 1.17.0](https://github.com/adamchainz/django-upgrade/compare/1.16.0...1.17.0) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Johnson --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 31 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61b4307e..23a35c79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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'] diff --git a/pyproject.toml b/pyproject.toml index 849a311b..afb7aa60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ 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", @@ -16,9 +16,13 @@ keywords = [ "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", @@ -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" @@ -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]