Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2024
1 parent 7b485a8 commit 21e6513
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand All @@ -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
Expand Down
28 changes: 22 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 21e6513

Please sign in to comment.