-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (58 loc) · 2.01 KB
/
Copy pathpyproject.toml
File metadata and controls
64 lines (58 loc) · 2.01 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
[tool.ty.rules]
# ty is Astral's Python type checker (fast, Rust-based)
# The trlc codebase uses dynamic patterns without full type annotations;
# unresolved-attribute and invalid-assignment produce many false positives
# on Optional/Unknown returns from unannotated AST types.
# Suppress these checks to reduce noise in current dynamic/unannotated paths.
unresolved-attribute = "ignore"
invalid-assignment = "ignore"
# lobster-trlc-system-test.py imports lobster which is not a Bazel dep;
# suppress unresolved-import for that file only (same intent as the
# existing # pylint: disable=import-error comments in the source).
[[tool.ty.overrides]]
include = ["lobster-trlc-system-test.py"]
[tool.ty.overrides.rules]
unresolved-import = "ignore"
# ---------------------------------------------------------------------------
# Pylint — migrated from pylint3.cfg
# ---------------------------------------------------------------------------
[tool.pylint.main]
persistent = false
[tool.pylint.messages_control]
disable = [
"bad-indentation",
"consider-using-f-string",
"fixme",
"inconsistent-return-statements",
"len-as-condition",
"locally-disabled",
"missing-docstring",
"no-else-break",
"no-else-continue",
"no-else-raise",
"no-else-return",
"similarities",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-boolean-expressions",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-positional-arguments",
"too-many-public-methods",
"too-many-return-statements",
"too-many-statements",
"unused-wildcard-import",
"wildcard-import",
]
[tool.pylint.reports]
output-format = "text"
reports = true
[tool.pylint.basic]
class-rgx = "([A-Z]+|[A-Z][a-z]+)(_[A-Z]+|[A-Z][a-z])*"
good-names = ["i", "j", "k", "c", "f", "fd", "zf", "n", "ap", "rv", "mh", "sm", "wp", "ok", "cc", "nc", "ct", "nt", "cu", "vc"]
[tool.pylint.format]
max-line-length = 88