-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
47 lines (44 loc) · 1.3 KB
/
ruff.toml
File metadata and controls
47 lines (44 loc) · 1.3 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
lint.select = [
"ALL",
]
lint.extend-ignore = [
# Later...
"D", # pydocstyle
"PLR",
"ARG",
"FBT",
"ERA",
"A",
"TD002", # [ ] missing-todo-author
"TD003", # [ ] missing-todo-link
# False positives
"COM812", # [*] missing-trailing-comma
"CPY001", # [ ] missing-copyright-notice
"E501", # [ ] line-too-long
"E712", # [*] true-false-comparison
"INP001", # Lack of __init__.py files
"SIM108", # [ ] if-else-block-instead-of-if-exp
"S101",
"S105",
"T201",
"ISC001",
# Acceptable in this codebase
"C901", # complex-structure (parser functions are inherently complex)
"ANN401", # any-type (needed for external library types)
"B027", # empty-method-without-abstract-decorator (intentional default impl)
# Non-top imports
"PLC0415",
]
[lint.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
known-first-party = ["md2typst"]
[lint.per-file-ignores]
"tests/**" = [
"ANN001", # missing-type-function-argument
"ANN201", # missing-return-type-undocumented-public-function
"ANN202", # missing-return-type-private-function
"RET504", # unnecessary-assign
"E741", # ambiguous-variable-name
"BLE001", # blind-except (acceptable in robustness tests)
]