-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] pre-commit autoupdate (#327)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8a168c5
commit 19f78fc
Showing
2 changed files
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,9 @@ keywords = [ | |
"user", | ||
] | ||
license = "Unlicense" | ||
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }] | ||
maintainers = [ | ||
{ name = "Bernát Gábor", email = "[email protected]" }, | ||
] | ||
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 }, | ||
] |