-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (86 loc) · 2.25 KB
/
pyproject.toml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.black]
line-length = 99
skip_magic_trailing_comma = false
target-version = ["py27"]
force-exclude = """
/(
| Assets/Python/data/maps/
| Assets/Python/BUFFY/
| Assets/Python/BUG/
| Assets/Python/Contrib/
| Assets/Python/pyHelper/
| Assets/Python/CvUtil.py
)/
"""
[tool.ruff]
line-length = 99
select = [
# pycodestyle
"E",
# pyflakes
"F",
]
ignore = [
"E501",
"E402", # module import not at top are okay
"E722", # bare except are okay
"F841", # unused variables are okay
"F402", # shadowing an import with loop variables is okay
"F403", # star imports are okay
"F405", # star imports are okay
]
exclude = [
"Docs/Tools/*.py",
"Assets/Python/data/maps/*.py",
"Assets/Python/BUFFY/",
"Assets/Python/BUG/",
"Assets/Python/Contrib/",
"Assets/Python/pyHelper/",
"Assets/Python/CvUtil.py",
]
target-version = "py37"
[tool.pyright]
executionEnvironments = [
{ root = "Assets/Python", extraPaths = [
# Folders of the project
"Assets/Python/",
"Assets/Python/data",
"Assets/Python/data/maps",
"Assets/Python/utils",
"Assets/Python/models",
"Assets/Python/components",
"Assets/Python/EntryPoints",
"Assets/Python/pyWB",
"Assets/Python/screens",
"Assets/Python/screens/PlatyBuilder/",
"Assets/Python/BUFFY/",
"Assets/Python/BUG/",
"Assets/Python/Contrib/",
"Assets/Python/pyHelper/",
# Folders from Sid Meier's Civilization IV Beyond the Sword/Beyond the Sword/Assets/Python
"../../Assets/Python",
"../../Assets/Python/EntryPoints",
"../../Assets/Python/pyWB",
"../../Assets/Python/Screens",
"../../Assets/Python/pyUnit",
"../../Assets/Python/pyHelper",
"../../Assets/Python/PitBoss",
# Folders from Sid Meier's Civilization IV Beyond the Sword/Assets/Python
"../../../Assets/Python/pyHelper",
] },
]
stubPath = "Assets/Python/.stubs"
reportUndefinedVariable = "error"
reportMissingModuleSource = false
reportGeneralTypeIssues = false
reportMissingImports = false
typeCheckingMode = "off"
exclude = [
"Assets/Python/EntryPoints/CvScreensInterface.py",
"Assets/Python/screens/CvWorldBuilderScreen.py",
"Assets/Python/pyWB/CvWBDesc.py",
"Assets/Python/PyHelpers.py",
"Assets/Python/BUFFY/",
"Assets/Python/BUG/",
"Assets/Python/Contrib/",
]