diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b6a456..d8502c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.2 + rev: 0.28.3 hooks: - id: check-github-workflows args: [ "--verbose" ] @@ -20,12 +20,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.14.2"] - 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 62d9f85..a3a292b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,9 @@ keywords = [ "sphinx", ] license = "MIT" -maintainers = [{ name = "Bernat Gabor", email = "gaborjbernat@gmail.com" }] # noqa: E999 +maintainers = [ + { name = "Bernat Gabor", email = "gaborjbernat@gmail.com" }, +] # noqa: E999 requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -52,7 +54,10 @@ urls.Tracker = "https://github.com/tox-dev/sphinx-argparse-cli/issues" [tool.hatch] build.hooks.vcs.version-file = "src/sphinx_argparse_cli/version.py" -build.targets.sdist.include = ["/src", "/tests"] +build.targets.sdist.include = [ + "/src", + "/tests", +] version.source = "vcs" [tool.black] @@ -61,8 +66,14 @@ line-length = 120 [tool.ruff] line-length = 120 target-version = "py38" -lint.select = ["ALL"] -lint.isort = { known-first-party = ["sphinx_argparse_cli"], required-imports = ["from __future__ import annotations"] } +lint.select = [ + "ALL", +] +lint.isort = { known-first-party = [ + "sphinx_argparse_cli", +], required-imports = [ + "from __future__ import annotations", +] } lint.ignore = [ "ANN101", # no type annotation for self "ANN401", # allow Any as type annotation @@ -98,11 +109,16 @@ count = true [tool.coverage] html.show_contexts = true html.skip_covered = false -paths.source = ["src", "**/site-packages"] +paths.source = [ + "src", + "**/site-packages", +] report.fail_under = 76 run.dynamic_context = "test_function" run.parallel = true -run.plugins = ["covdefaults"] +run.plugins = [ + "covdefaults", +] run.relative_files = true [tool.mypy]