@@ -65,33 +65,43 @@ build.hooks.vcs.version-file = "src/filelock/version.py"
6565build.targets.sdist.include = [" /src" , " /tests" , " /tox.ini" ]
6666version.source = " vcs"
6767
68- [tool .black ]
69- line-length = 120
70-
7168[tool .ruff ]
72- select = [" ALL" ]
7369line-length = 120
7470target-version = " py38"
75- isort = {known-first-party = [" filelock" ], required-imports = [" from __future__ import annotations" ]}
76- ignore = [
77- " ANN101" , # Missing type annotation for `self` in method
78- " D301" , # Use `r"""` if any backslashes in a docstring
79- " D205" , # 1 blank line required between summary line and description
80- " D401" , # First line of docstring should be in imperative mood
81- " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
82- " D212" , # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
83- " S104" , # Possible binding to all interface
71+ lint.isort = { known-first-party = [" filelock" ], required-imports = [" from __future__ import annotations" ] }
72+ lint.select = [" ALL" ]
73+ lint.ignore = [
74+ " 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
78+ " D203" , # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
79+ " 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
82+ " ISC001" , # Conflict with formatter
83+ " CPY" , # No copyright statements
8484]
85- [tool .ruff .per-file-ignores ]
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 ]
8690"tests/**/*.py" = [
87- " S101" , # asserts allowed in tests...
88- " FBT" , # don"t care about booleans as positional arguments in tests
89- " INP001" , # no implicit namespace
90- " D" , # don"t care about documentation in tests
91- " S603" , # `subprocess` call: check for execution of untrusted input
92- " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
91+ " S101" , # asserts allowed in tests...
92+ " FBT" , # don"t care about booleans as positional arguments in tests
93+ " INP001" , # no implicit namespace
94+ " D" , # don"t care about documentation in tests
95+ " S603" , # `subprocess` call: check for execution of untrusted input
96+ " PLR2004" , # Magic value used in comparison, consider replacing with a constant variable
9397]
9498
99+ [tool .codespell ]
100+ builtin = " clear,usage,en-GB_to_en-US"
101+ count = true
102+ quiet-level = 3
103+ ignore-words-list = " master"
104+
95105[tool .coverage ]
96106html.show_contexts = true
97107html.skip_covered = false
0 commit comments