forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (94 loc) · 1.58 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
89
90
91
92
93
94
95
96
97
98
99
[tool.ruff]
exclude = [
"./cache/",
"./node_modules/",
"./site/source/_themes/",
"./site/source/conf.py",
"./system/lib/",
"./test/third_party/",
"./third_party/",
"./tools/filelock.py",
"./tools/scons/",
".git",
]
lint.select = [
"ARG",
"ASYNC",
"B",
"C90",
"E",
"F",
"PERF",
"PL",
"W",
"YTT",
]
lint.ignore = [
"ARG001",
"ARG002",
"ARG005",
"B006",
"B011",
"B018",
"B023",
"B026",
"B904",
"E402",
"E501",
"E721",
"E741",
"PERF203",
"PERF401",
"PLR1704",
"PLR1714",
"PLR5501",
"PLW0602",
"PLW0603",
"PLW1510",
"PLW2901",
]
lint.per-file-ignores."emrun.py" = [ "PLE0704" ]
lint.mccabe.max-complexity = 48 # Recommended: 10
lint.pylint.allow-magic-value-types = [
"bytes",
"float",
"int",
"str",
]
lint.pylint.max-args = 15 # Recommended: 5
lint.pylint.max-branches = 49 # Recommended: 12
lint.pylint.max-returns = 16 # Recommended: 6
lint.pylint.max-statements = 142 # Recommended: 50
[tool.coverage.run]
source = [ "." ]
omit = [
"./test/*",
"./third_party/*",
"./tools/emcoverage.py",
"test.py",
]
[tool.mypy]
mypy_path = "third_party/,third_party/ply,third_party/websockify"
files = [ "." ]
exclude = '''
(?x)(
cache |
third_party |
conf\.py |
emrun\.py |
site/source/_themes/ |
tools/scons/site_scons/site_tools/emscripten/__init__\.py |
site/source/get_wiki\.py |
test/parse_benchmark_output\.py
)'''
[[tool.mypy.overrides]]
module = [
"tools.create_dom_pk_codes",
"tools.webidl_binder",
"tools.toolchain_profiler",
"tools.filelock",
"tools.find_bigvars",
"leb128",
"ply.*",
]
ignore_errors = true