@@ -17,7 +17,9 @@ keywords = [
1717 " user" ,
1818]
1919license = " Unlicense"
20- maintainers = [{
name =
" Bernát Gábor" ,
email =
" [email protected] " }]
20+ maintainers = [
21+ {
name =
" Bernát Gábor" ,
email =
" [email protected] " },
22+ ]
2123requires-python = " >=3.8"
2224classifiers = [
2325 " Development Status :: 5 - Production/Stable" ,
@@ -48,12 +50,13 @@ optional-dependencies.testing = [
4850 " coverage>=7.3.2" ,
4951 " diff-cover>=8.0.1" ,
5052 " pytest>=7.4.3" ,
53+ " pytest-asyncio>=0.21" ,
5154 " pytest-cov>=4.1" ,
5255 " pytest-mock>=3.12" ,
5356 " pytest-timeout>=2.2" ,
5457]
5558optional-dependencies.typing = [
56- ' typing-extensions>=4.8; python_version < " 3.11" ' ,
59+ " typing-extensions>=4.8; python_version<' 3.11' " ,
5760]
5861urls.Documentation = " https://py-filelock.readthedocs.io"
5962urls.Homepage = " https://github.com/tox-dev/py-filelock"
@@ -62,39 +65,48 @@ urls.Tracker = "https://github.com/tox-dev/py-filelock/issues"
6265
6366[tool .hatch ]
6467build.hooks.vcs.version-file = " src/filelock/version.py"
65- build.targets.sdist.include = [" /src" , " /tests" , " /tox.ini" ]
68+ build.targets.sdist.include = [
69+ " /src" ,
70+ " /tests" ,
71+ " /tox.ini" ,
72+ ]
6673version.source = " vcs"
6774
6875[tool .ruff ]
69- line-length = 120
7076target-version = " py38"
71- lint.isort = { known-first-party = [" filelock" ], required-imports = [" from __future__ import annotations" ] }
72- lint.select = [" ALL" ]
77+ line-length = 120
78+ format.preview = true
79+ format.docstring-code-line-length = 100
80+ format.docstring-code-format = true
81+ lint.select = [
82+ " ALL" ,
83+ ]
7384lint.ignore = [
7485 " ANN101" , # Missing type annotation for `self` in method
75- " D301" , # Use `r"""` if any backslashes in a docstring
76- " D205" , # 1 blank line required between summary line and description
77- " D401" , # First line of docstring should be in imperative mood
86+ " COM812" , # Conflict with formatter
87+ " CPY" , # No copyright statements
7888 " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
89+ " D205" , # 1 blank line required between summary line and description
7990 " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
80- " S104 " , # Possible binding to all interface
81- " COM812 " , # Conflict with formatter
91+ " D301 " , # Use `r"""` if any backslashes in a docstring
92+ " D401 " , # First line of docstring should be in imperative mood
8293 " ISC001" , # Conflict with formatter
83- " CPY " , # No copyright statements
94+ " S104 " , # Possible binding to all interface
8495]
85- lint.preview = true
86- format.preview = true
87- format.docstring-code-format = true
88- format.docstring-code-line-length = 100
89- [tool .ruff .lint .per-file-ignores ]
90- "tests/**/*.py" = [
91- " S101" , # asserts allowed in tests...
96+ lint.per-file-ignores."tests/**/*.py" = [
97+ " D" , # don"t care about documentation in tests
9298 " FBT" , # don"t care about booleans as positional arguments in tests
9399 " INP001" , # no implicit namespace
94- " D" , # don"t care about documentation in tests
95- " S603" , # `subprocess` call: check for execution of untrusted input
96100 " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
101+ " S101" , # asserts allowed in tests...
102+ " S603" , # `subprocess` call: check for execution of untrusted input
97103]
104+ lint.isort = { known-first-party = [
105+ " filelock" ,
106+ ], required-imports = [
107+ " from __future__ import annotations" ,
108+ ] }
109+ lint.preview = true
98110
99111[tool .codespell ]
100112builtin = " clear,usage,en-GB_to_en-US"
@@ -105,14 +117,31 @@ ignore-words-list = "master"
105117[tool .coverage ]
106118html.show_contexts = true
107119html.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+ ]
110132report.fail_under = 76
111133run.parallel = true
112- run.plugins = [" covdefaults" ]
134+ run.plugins = [
135+ " covdefaults" ,
136+ ]
113137
114138[tool .mypy ]
115139python_version = " 3.11"
116140show_error_codes = true
117141strict = 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