-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathpyproject.toml
48 lines (42 loc) · 1.15 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
[tool.ruff]
line-length = 88
target-version = "py39"
exclude=["frameworks/TunedRandomForest/custom_validate.py"]
[tool.ruff.lint]
ignore = [
"E402", # import on top of file: several modules need to set BLAS env before imports
"F403", # forbids *-imports, sort out later
]
exclude = [
"amlb_report/**.py",
]
[tool.mypy]
files=[
"amlb/**/*.py"
]
python_version = "3.9"
# Required because the normal usage pattern of namespaces raises [attr-defined] errors.
# I can't a way to disable [attr-defined] errors for `Namespace` only.
disable_error_code = "attr-defined"
# problem with ruamel: https://github.com/python/mypy/issues/12664
incremental = false
[tool.coverage.run]
include=[
"tests/**",
"amlb/**",
"frameworks/shared/**"
]
# 3rd party libraries without type hints or stubs:
[[tool.mypy.overrides]]
module=[
"arff",
"sklearn.*",
"scipy.*",
]
ignore_missing_imports=true
[[tool.mypy.overrides]]
module = "amlb.benchmark"
disable_error_code = "union-attr"
# special run-mode script makes some attributes optional,
# TODO: refactor so that recovery script does not need special runtime or that it doesnt
# abuse the benchmark class.