From ab10980914902d12afde018ebe5ea8bb978ecc73 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:23:03 +0000 Subject: [PATCH 1/2] [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 53a94d0..186bacc 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 ef2ebe225b322f9a648f51213c1e4bdd67dd1f49 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:26:57 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index be57bc7..392da8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,12 +8,14 @@ requires = [ name = "patchy" version = "2.8.0" description = "Patch the inner source of python functions at runtime." -readme = {file = "README.rst", content-type = "text/x-rst"} +readme = { file = "README.rst", content-type = "text/x-rst" } keywords = [ "patchy", ] -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", @@ -30,13 +32,13 @@ classifiers = [ "Typing :: Typed", ] dependencies = [ - 'pkgutil-resolve-name; python_version < "3.9"', + "pkgutil-resolve-name; python_version<'3.9'", ] -urls = {Changelog = "https://github.com/adamchainz/patchy/blob/main/CHANGELOG.rst",Funding = "https://adamj.eu/books/",Repository = "https://github.com/adamchainz/patchy"} +urls = { Changelog = "https://github.com/adamchainz/patchy/blob/main/CHANGELOG.rst", Funding = "https://adamj.eu/books/", Repository = "https://github.com/adamchainz/patchy" } [tool.isort] add_imports = [ - "from __future__ import annotations" + "from __future__ import annotations", ] force_single_line = true profile = "black" @@ -52,14 +54,14 @@ xfail_strict = true branch = true parallel = true source = [ - "patchy", - "tests", + "patchy", + "tests", ] [tool.coverage.paths] source = [ - "src", - ".tox/**/site-packages", + "src", + ".tox/**/site-packages", ] [tool.coverage.report]