Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/pyproject.toml
20912 views
1
[tool.mypy]
2
disallow_any_generics = true
3
explicit_package_bases = true
4
ignore_missing_imports = true
5
namespace_packages = true
6
no_implicit_optional = true
7
pretty = true
8
show_column_numbers = true
9
warn_redundant_casts = true
10
warn_return_any = true
11
warn_unreachable = true
12
exclude = ["thirdparty/"]
13
python_version = "3.8"
14
15
[tool.ruff]
16
extend-exclude = ["thirdparty"]
17
extend-include = ["*SConstruct", "*SCsub"]
18
target-version = "py38"
19
line-length = 120
20
preview = true
21
fix = true
22
23
[tool.ruff.lint]
24
extend-select = [
25
"I", # isort
26
"UP006", # Use {to} instead of {from} for type annotation
27
"UP007", # Use `X | Y` for type annotations
28
"UP037", # Remove quotes from type annotation
29
"FA", # Future annotations
30
]
31
extend-safe-fixes = ["UP006", "UP007", "FA"]
32
33
[tool.ruff.lint.per-file-ignores]
34
"{SConstruct,SCsub}" = [
35
"E402", # Module level import not at top of file
36
"F403", # Undefined local with import star
37
"F405", # Undefined local with import star usage
38
]
39
40
[tool.ruff.lint.isort]
41
sections = { metadata = ["misc.utility.scons_hints"] }
42
section-order = [
43
"future",
44
"metadata",
45
"standard-library",
46
"third-party",
47
"first-party",
48
"local-folder",
49
]
50
51
[tool.codespell]
52
enable-colors = true
53
write-changes = true
54
check-hidden = true
55
quiet-level = 3
56
builtin = ["clear", "rare", "en-GB_to_en-US"]
57
skip = [
58
".mailmap",
59
"*.desktop",
60
"*.gitignore",
61
"*.po",
62
"*.pot",
63
"*.rc",
64
"AUTHORS.md",
65
"COPYRIGHT.txt",
66
"core/input/gamecontrollerdb.txt",
67
"core/string/locales.h",
68
"DONORS.md",
69
"editor/project_converter_3_to_4.cpp",
70
"platform/android/java/lib/src/main/java/com/*",
71
"platform/web/package-lock.json",
72
]
73
ignore-words-list = [
74
"breaked",
75
"cancelled",
76
"checkin",
77
"colour",
78
"curvelinear",
79
"doubleclick",
80
"expct",
81
"findn",
82
"gird",
83
"hel",
84
"inout",
85
"labelin",
86
"lod",
87
"masia",
88
"mis",
89
"nd",
90
"numer",
91
"ot",
92
"outin",
93
"parm",
94
"pEvent",
95
"requestor",
96
"streamin",
97
"te",
98
"textin",
99
"thirdparty",
100
"vai",
101
]
102
103