forked from skops-dev/skops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
39 lines (35 loc) · 1.35 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
[tool.black]
line-length = 88
target_version = ['py38', 'py39', 'py310', 'py311']
preview = true
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
filterwarnings = [
"error::DeprecationWarning",
"error::FutureWarning",
# TODO: remove when no longer supporting sklearn v1.0
# numpy and scipy deprecation warnings in sklearn:
'ignore:\n\n \`numpy.distutils\` is deprecated since NumPy:DeprecationWarning',
# https://github.com/scikit-learn/scikit-learn/issues/24080
"ignore:The \\'sym_pos\\' keyword is deprecated and should be replaced:DeprecationWarning",
# https://github.com/scikit-learn/scikit-learn/pull/23633
"ignore:Unlike other reduction functions:FutureWarning",
# https://github.com/scikit-learn/scikit-learn/pull/25157
"ignore:\\w+ is deprecated. Use files\\(\\) instead:DeprecationWarning"
]
markers = [
"network: marks tests as requiring internet (deselect with '-m \"not network\"')",
"inference: marks tests that call inference API (deselect with '-m \"not inference\"')",
]
addopts = "--cov=skops --cov-report=term-missing --doctest-modules"
[tool.coverage.run]
omit = [
"skops/**/test_*.py",
"skops/_min_dependencies.py",
"skops/conftest.py",
]
[tool.mypy]
exclude = "(\\w+/)*test_\\w+\\.py$|spaces/skops_model_card_creator|old"
ignore_missing_imports = true
no_implicit_optional = true