-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 2.12 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 2.12 KB
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
# Root pyproject.toml — dev tooling config only.
# Package build configs live in packages/*/pyproject.toml.
[tool.pytest.ini_options]
testpaths = [
"packages/pyapprox/tests",
"packages/pyapprox-benchmarks/tests",
"tests/integration",
]
addopts = ["--import-mode=importlib"]
pythonpath = [
".",
"packages/pyapprox/src",
"packages/pyapprox-benchmarks/src",
"packages/pyapprox-tutorials/src",
]
filterwarnings = [
"ignore::DeprecationWarning:scipy.*:",
"ignore::DeprecationWarning:torch.*:",
"ignore::DeprecationWarning:skfem.*:",
"ignore::UserWarning:scipy.optimize.*:",
"ignore::scipy.sparse.SparseEfficiencyWarning:",
"ignore:The balance properties of Sobol:UserWarning",
]
markers = [
"slow_on: marks tests as slow (>5s). Args: backend names or '*' for all.",
"slower_on: marks tests as slower (>30s). Args: backend names or '*' for all.",
"slowest_on: marks tests as slowest (>60s). Args: backend names or '*' for all.",
]
[tool.coverage.run]
omit = [
"*/__init__.py",
"*/expdesign/likelihood/compute_numba.py",
"*/expdesign/likelihood/compute_torch.py",
"*/expdesign/likelihood/parallel_gaussian.py",
"*/expdesign/objective/parallel_kl_objective.py",
]
[tool.coverage.report]
skip_empty = true
exclude_lines = [
"@abstractmethod",
"def __repr__",
]
exclude_also = [
"raise NotImplementedError",
"jacobian_implemented",
"apply_jacobian_implemented",
"hessian_implemented",
"apply_hessian_implemented",
"apply_weighted_hessian_implemented",
"def plot",
]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E402"] # intentional lazy imports to reduce module load times
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
"pyapprox_tutorials/",
]
[[tool.mypy.overrides]]
module = ["*"]
follow_imports = "silent"
[[tool.mypy.overrides]]
module = ["pyapprox.*"]
follow_imports = "normal"
[[tool.mypy.overrides]]
module = [
"pyapprox.surrogates.kernels.matern_numba",
"pyapprox.util.linalg.pivoted_cholesky_numba",
]
disallow_untyped_decorators = false
disallow_untyped_defs = false