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