Skip to content

Commit 19f78fc

Browse files
[pre-commit.ci] pre-commit autoupdate (#327)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8a168c5 commit 19f78fc

File tree

2 files changed

+40
-11
lines changed

2 files changed

+40
-11
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ repos:
1515
- id: tox-ini-fmt
1616
args: ["-p", "fix"]
1717
- repo: https://github.com/tox-dev/pyproject-fmt
18-
rev: "1.8.0"
18+
rev: "2.0.3"
1919
hooks:
2020
- id: pyproject-fmt
2121
additional_dependencies: ["tox>=4.12.1"]
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: "v0.4.2"
23+
rev: "v0.4.4"
2424
hooks:
2525
- id: ruff-format
2626
- id: ruff

pyproject.toml

+38-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ keywords = [
1717
"user",
1818
]
1919
license = "Unlicense"
20-
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
20+
maintainers = [
21+
{ name = "Bernát Gábor", email = "[email protected]" },
22+
]
2123
requires-python = ">=3.8"
2224
classifiers = [
2325
"Development Status :: 5 - Production/Stable",
@@ -53,7 +55,7 @@ optional-dependencies.testing = [
5355
"pytest-timeout>=2.2",
5456
]
5557
optional-dependencies.typing = [
56-
'typing-extensions>=4.8; python_version < "3.11"',
58+
"typing-extensions>=4.8; python_version<'3.11'",
5759
]
5860
urls.Documentation = "https://py-filelock.readthedocs.io"
5961
urls.Homepage = "https://github.com/tox-dev/py-filelock"
@@ -62,14 +64,24 @@ urls.Tracker = "https://github.com/tox-dev/py-filelock/issues"
6264

6365
[tool.hatch]
6466
build.hooks.vcs.version-file = "src/filelock/version.py"
65-
build.targets.sdist.include = ["/src", "/tests", "/tox.ini"]
67+
build.targets.sdist.include = [
68+
"/src",
69+
"/tests",
70+
"/tox.ini",
71+
]
6672
version.source = "vcs"
6773

6874
[tool.ruff]
6975
line-length = 120
7076
target-version = "py38"
71-
lint.isort = { known-first-party = ["filelock"], required-imports = ["from __future__ import annotations"] }
72-
lint.select = ["ALL"]
77+
lint.isort = { known-first-party = [
78+
"filelock",
79+
], required-imports = [
80+
"from __future__ import annotations",
81+
] }
82+
lint.select = [
83+
"ALL",
84+
]
7385
lint.ignore = [
7486
"ANN101", # Missing type annotation for `self` in method
7587
"D301", # Use `r"""` if any backslashes in a docstring
@@ -105,14 +117,31 @@ ignore-words-list = "master"
105117
[tool.coverage]
106118
html.show_contexts = true
107119
html.skip_covered = false
108-
paths.source = ["src", ".tox/*/lib/*/site-packages", ".tox\\*\\Lib\\site-packages", "**/src", "**\\src"]
109-
paths.other = [".", "*/filelock", "*\\filelock"]
120+
paths.source = [
121+
"src",
122+
".tox/*/lib/*/site-packages",
123+
".tox\\*\\Lib\\site-packages",
124+
"**/src",
125+
"**\\src",
126+
]
127+
paths.other = [
128+
".",
129+
"*/filelock",
130+
"*\\filelock",
131+
]
110132
report.fail_under = 76
111133
run.parallel = true
112-
run.plugins = ["covdefaults"]
134+
run.plugins = [
135+
"covdefaults",
136+
]
113137

114138
[tool.mypy]
115139
python_version = "3.11"
116140
show_error_codes = true
117141
strict = true
118-
overrides = [{ module = ["appdirs.*", "jnius.*"], ignore_missing_imports = true }]
142+
overrides = [
143+
{ module = [
144+
"appdirs.*",
145+
"jnius.*",
146+
], ignore_missing_imports = true },
147+
]

0 commit comments

Comments
 (0)