Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/pyproject.toml
6171 views
1
[project]
2
requires-python = ">=3.10"
3
4
[tool.ruff]
5
line-length = 100
6
exclude = [
7
"./cache/",
8
"./node_modules/",
9
"./site/source/_themes/",
10
"./site/source/conf.py",
11
"./system/lib/",
12
"./test/third_party/",
13
"./third_party/",
14
"./tools/filelock.py",
15
"./tools/scons/",
16
".git",
17
]
18
19
lint.select = [
20
"ARG",
21
"ASYNC",
22
"B",
23
"C4",
24
"C90",
25
"COM",
26
"E",
27
"F",
28
"I",
29
"PERF",
30
"PIE",
31
"PL",
32
"UP",
33
"W",
34
"YTT",
35
]
36
lint.external = [ "D" ]
37
lint.ignore = [
38
"B011", # See https://github.com/PyCQA/flake8-bugbear/issues/66
39
"B023",
40
"B026",
41
"E402",
42
"E501",
43
"E721",
44
"E741",
45
"PERF203",
46
"PERF401",
47
"PLC0415",
48
"PLR1704",
49
"PLR5501",
50
"PLW0602",
51
"PLW0603",
52
"PLW1510",
53
"PLW2901",
54
"UP030", # TODO
55
"UP031", # TODO
56
"UP032", # TODO
57
]
58
lint.per-file-ignores."tools/ports/*.py" = [ "ARG001", "ARG005" ]
59
lint.per-file-ignores."test/other/ports/*.py" = [ "ARG001" ]
60
lint.per-file-ignores."test/parallel_testsuite.py" = [ "ARG002" ]
61
lint.per-file-ignores."test/test_benchmark.py" = [ "ARG002" ]
62
lint.mccabe.max-complexity = 51 # Recommended: 10
63
lint.pylint.allow-magic-value-types = [
64
"bytes",
65
"float",
66
"int",
67
"str",
68
]
69
lint.pylint.max-args = 15 # Recommended: 5
70
lint.pylint.max-branches = 50 # Recommended: 12
71
lint.pylint.max-returns = 16 # Recommended: 6
72
lint.pylint.max-statements = 142 # Recommended: 50
73
74
[tool.coverage.run]
75
source = [ "." ]
76
omit = [
77
"./test/*",
78
"./third_party/*",
79
"./tools/emcoverage.py",
80
"test.py",
81
]
82
83
[tool.mypy]
84
mypy_path = "third_party/,third_party/ply,third_party/websockify"
85
files = [ "." ]
86
exclude = '''
87
(?x)(
88
cache |
89
third_party |
90
conf\.py |
91
emrun\.py |
92
site/source/_themes/ |
93
tools/scons/site_scons/site_tools/emscripten/__init__\.py |
94
tools/maint/create_dom_pk_codes.py |
95
site/source/get_wiki\.py |
96
test/parse_benchmark_output\.py
97
)'''
98
99
[[tool.mypy.overrides]]
100
module = [
101
"tools.webidl_binder",
102
"tools.toolchain_profiler",
103
"tools.filelock",
104
"tools.find_bigvars",
105
"leb128",
106
"ply.*",
107
]
108
ignore_errors = true
109
110
[[tool.mypy.overrides]]
111
module = ["psutil", "win32con", "win32gui", "win32process"]
112
ignore_missing_imports = true
113
114
[tool.deadcode]
115
exclude = ["out", "cache", "third_party", "test/third_party", "node_modules", "site/source/_themes", "site/source/conf.py"]
116
117
[tool.vulture]
118
exclude = ["out", "cache", "third_party", "test/third_party", "node_modules", "site/source/_themes", "site/source/conf.py"]
119
120