From 19f78fcdb30c8ce296acd54a016a1247e27dac3e 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 10:17:38 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#327) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 47 +++++++++++++++++++++++++++++++++-------- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8299f895..80e8fdcf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.8.0" + rev: "2.0.3" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.12.1"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.2" + rev: "v0.4.4" hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index a9a028c4..35daa4b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,9 @@ keywords = [ "user", ] license = "Unlicense" -maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }] +maintainers = [ + { name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }, +] requires-python = ">=3.8" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -53,7 +55,7 @@ optional-dependencies.testing = [ "pytest-timeout>=2.2", ] optional-dependencies.typing = [ - 'typing-extensions>=4.8; python_version < "3.11"', + "typing-extensions>=4.8; python_version<'3.11'", ] urls.Documentation = "https://py-filelock.readthedocs.io" urls.Homepage = "https://github.com/tox-dev/py-filelock" @@ -62,14 +64,24 @@ urls.Tracker = "https://github.com/tox-dev/py-filelock/issues" [tool.hatch] build.hooks.vcs.version-file = "src/filelock/version.py" -build.targets.sdist.include = ["/src", "/tests", "/tox.ini"] +build.targets.sdist.include = [ + "/src", + "/tests", + "/tox.ini", +] version.source = "vcs" [tool.ruff] line-length = 120 target-version = "py38" -lint.isort = { known-first-party = ["filelock"], required-imports = ["from __future__ import annotations"] } -lint.select = ["ALL"] +lint.isort = { known-first-party = [ + "filelock", +], required-imports = [ + "from __future__ import annotations", +] } +lint.select = [ + "ALL", +] lint.ignore = [ "ANN101", # Missing type annotation for `self` in method "D301", # Use `r"""` if any backslashes in a docstring @@ -105,14 +117,31 @@ ignore-words-list = "master" [tool.coverage] html.show_contexts = true html.skip_covered = false -paths.source = ["src", ".tox/*/lib/*/site-packages", ".tox\\*\\Lib\\site-packages", "**/src", "**\\src"] -paths.other = [".", "*/filelock", "*\\filelock"] +paths.source = [ + "src", + ".tox/*/lib/*/site-packages", + ".tox\\*\\Lib\\site-packages", + "**/src", + "**\\src", +] +paths.other = [ + ".", + "*/filelock", + "*\\filelock", +] report.fail_under = 76 run.parallel = true -run.plugins = ["covdefaults"] +run.plugins = [ + "covdefaults", +] [tool.mypy] python_version = "3.11" show_error_codes = true strict = true -overrides = [{ module = ["appdirs.*", "jnius.*"], ignore_missing_imports = true }] +overrides = [ + { module = [ + "appdirs.*", + "jnius.*", + ], ignore_missing_imports = true }, +]