Skip to content

Commit 21e6513

Browse files
[pre-commit.ci] pre-commit autoupdate (#167)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7b485a8 commit 21e6513

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/python-jsonschema/check-jsonschema
8-
rev: 0.28.2
8+
rev: 0.28.3
99
hooks:
1010
- id: check-github-workflows
1111
args: [ "--verbose" ]
@@ -20,12 +20,12 @@ repos:
2020
- id: tox-ini-fmt
2121
args: ["-p", "fix"]
2222
- repo: https://github.com/tox-dev/pyproject-fmt
23-
rev: "1.8.0"
23+
rev: "2.0.3"
2424
hooks:
2525
- id: pyproject-fmt
2626
additional_dependencies: ["tox>=4.14.2"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.4.2"
28+
rev: "v0.4.4"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

pyproject.toml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ keywords = [
1414
"sphinx",
1515
]
1616
license = "MIT"
17-
maintainers = [{ name = "Bernat Gabor", email = "[email protected]" }] # noqa: E999
17+
maintainers = [
18+
{ name = "Bernat Gabor", email = "[email protected]" },
19+
] # noqa: E999
1820
requires-python = ">=3.9"
1921
classifiers = [
2022
"Development Status :: 5 - Production/Stable",
@@ -52,7 +54,10 @@ urls.Tracker = "https://github.com/tox-dev/sphinx-argparse-cli/issues"
5254

5355
[tool.hatch]
5456
build.hooks.vcs.version-file = "src/sphinx_argparse_cli/version.py"
55-
build.targets.sdist.include = ["/src", "/tests"]
57+
build.targets.sdist.include = [
58+
"/src",
59+
"/tests",
60+
]
5661
version.source = "vcs"
5762

5863
[tool.black]
@@ -61,8 +66,14 @@ line-length = 120
6166
[tool.ruff]
6267
line-length = 120
6368
target-version = "py38"
64-
lint.select = ["ALL"]
65-
lint.isort = { known-first-party = ["sphinx_argparse_cli"], required-imports = ["from __future__ import annotations"] }
69+
lint.select = [
70+
"ALL",
71+
]
72+
lint.isort = { known-first-party = [
73+
"sphinx_argparse_cli",
74+
], required-imports = [
75+
"from __future__ import annotations",
76+
] }
6677
lint.ignore = [
6778
"ANN101", # no type annotation for self
6879
"ANN401", # allow Any as type annotation
@@ -98,11 +109,16 @@ count = true
98109
[tool.coverage]
99110
html.show_contexts = true
100111
html.skip_covered = false
101-
paths.source = ["src", "**/site-packages"]
112+
paths.source = [
113+
"src",
114+
"**/site-packages",
115+
]
102116
report.fail_under = 76
103117
run.dynamic_context = "test_function"
104118
run.parallel = true
105-
run.plugins = ["covdefaults"]
119+
run.plugins = [
120+
"covdefaults",
121+
]
106122
run.relative_files = true
107123

108124
[tool.mypy]

0 commit comments

Comments
 (0)