From 6c0a9e7658ca9b2ce70b5043daaa0087a87b964a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 19:22:24 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate 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) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c455464..090bc18 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 From 1aa2076106c43dd05b8de9a8a0d25f7f58e21909 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 19:22:48 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2c12c21..d2f358e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,15 +8,17 @@ requires = [ name = "apig-wsgi" version = "2.18.0" description = "Wrap a WSGI application in an AWS Lambda handler function for running on API Gateway or an ALB." -readme = {file = "README.rst", content-type = "text/x-rst"} +readme = { file = "README.rst", content-type = "text/x-rst" } keywords = [ "API Gateway", "APIG", "AWS", "Lambda", ] -license = {text = "MIT"} -authors = [{name = "Adam Johnson", email = "me@adamj.eu"}] +license = { text = "MIT" } +authors = [ + { name = "Adam Johnson", email = "me@adamj.eu" }, +] requires-python = ">=3.8" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -33,23 +35,21 @@ classifiers = [ "Typing :: Typed", ] dependencies = [ - 'typing-extensions; python_version < "3.8"', + "typing-extensions; python_version<'3.8'", ] -[project.urls] -Changelog = "https://github.com/adamchainz/apig-wsgi/blob/main/CHANGELOG.rst" -Funding = "https://adamj.eu/books/" -Repository = "https://github.com/adamchainz/apig-wsgi" - +urls.Changelog = "https://github.com/adamchainz/apig-wsgi/blob/main/CHANGELOG.rst" +urls.Funding = "https://adamj.eu/books/" +urls.Repository = "https://github.com/adamchainz/apig-wsgi" [tool.isort] add_imports = [ - "from __future__ import annotations" + "from __future__ import annotations", ] force_single_line = true profile = "black" src_paths = [ - ".", - "example/app", - "src", + ".", + "example/app", + "src", ] [tool.pytest.ini_options] @@ -62,14 +62,14 @@ addopts = """\ branch = true parallel = true source = [ - "apig_wsgi", - "tests", + "apig_wsgi", + "tests", ] [tool.coverage.paths] source = [ - "src", - ".tox/**/site-packages", + "src", + ".tox/**/site-packages", ] [tool.coverage.report] From d34ab81f515aa181904f4b8d7b09c96786236c6d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 14 May 2024 23:36:50 +0100 Subject: [PATCH 3/3] Reformat --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index d2f358e..efc4725 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,7 @@ dependencies = [ urls.Changelog = "https://github.com/adamchainz/apig-wsgi/blob/main/CHANGELOG.rst" urls.Funding = "https://adamj.eu/books/" urls.Repository = "https://github.com/adamchainz/apig-wsgi" + [tool.isort] add_imports = [ "from __future__ import annotations",