forked from tox-dev/toml-fmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (63 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (63 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[tool.uv]
sources.toml-fmt-common = { workspace = true }
workspace.members = [ "pyproject-fmt", "toml-fmt-common", "tox-toml-fmt" ]
[tool.ruff]
line-length = 120
format.preview = true
format.docstring-code-line-length = 100
format.docstring-code-format = true
lint.select = [
"ALL",
]
lint.ignore = [
"ANN401", # allow Any as type annotation
"COM812", # Conflict with formatter
"CPY", # No copyright statements
"D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
"DOC", # no good support
"ISC001", # Conflict with formatter
"RUF067", # allow code in __init__.py for toml-fmt-common
"S104", # Possible binding to all interface
]
lint.per-file-ignores."**/build_backend.py" = [
"D103", # the build-backend hooks are PEP 517 contract, documented at module level
"INP001", # is not a namespace
"T201", # the CLI reports what it patched
]
lint.per-file-ignores."**/tests/**/*.py" = [
"D", # don't care about documentation in tests
"FBT", # don't care about booleans as positional arguments in tests
"INP001", # no implicit namespace
"PLC2701", # private import
"PLR0913", # any number of arguments in tests
"PLR0917", # any number of arguments in tests
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
"S101", # asserts allowed in tests...
"S603", # `subprocess` call: check for execution of untrusted input
]
lint.per-file-ignores."**/toxfile.py" = [
"D", # don't care about documentation in tox plugins
"INP001", # is not a namespace
"S404", # subprocess is required for tox plugin
"S607", # partial path is fine for tox command
]
lint.per-file-ignores."tasks/**.py" = [
"D", # don't care about documentation in tests
"INP001", # is not a namespace
"T201", # allow print
]
lint.isort = { known-first-party = [
"pyproject_fmt",
"toml_fmt_common",
"tox_toml_fmt",
], required-imports = [
"from __future__ import annotations",
] }
lint.preview = true
[tool.codespell]
builtin = "clear,usage,en-GB_to_en-US"
ignore-words = "ignore-words.txt"
skip = "*.snap,*/tests/data/*"
write-changes = true
count = true