Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (41 loc) · 1.51 KB
/
Copy pathpyproject.toml
File metadata and controls
48 lines (41 loc) · 1.51 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
[tool.mypy]
ignore_missing_imports = true
disallow_any_generics = true
no_implicit_optional = true
pretty = true
show_column_numbers = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
namespace_packages = true
explicit_package_bases = true
[tool.ruff]
line-length = 120
target-version = "py37"
[tool.ruff.lint]
extend-select = [
"I", # isort
]
[tool.typos]
files.extend-exclude = [".mailmap", "*.gitignore", "*.po", "*.pot", "*.rc"]
default.extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", # Single line check disable
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on", # Multiline check disable with // spellchecker:off // spellchecker:on (can also use #)
"(?s)(/\\*)\\s*spellchecker:off.*?\\s*spellchecker:on\\s*(\\*/)", # Multiline check disable with /* spellchecker:off ... spellchecker:on */
"uid://\\S+", # Ignore engine uids
"id=\"[^\"]+\"", # Ignore scene ids
"ExtResource\\(\"[^\"]+\"\\)", # Ignore scene ids
]
[tool.typos.type.xml]
locale = "en-us"
check-filename = false
extend-ignore-re = [
'<.* name="[^"]+".*>',
'\[(param|member|method)?.+\]',
]
[tool.typos.type.skip_names]
extend-glob = ["AUTHORS.md", "COPYRIGHT", "CODE_OF_CONDUCT.md", "credits.csv"]
[tool.typos.type.skip_names.extend-identifiers]
Catylist = "Catylist"
[tool.typos.default.extend-identifiers]
PNGs = "PNGs"