forked from skops-dev/skops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
45 lines (41 loc) · 1.8 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
[tool.black]
line-length = 88
target_version = ['py38', 'py39', 'py310', 'py311']
preview = true
[tool.ruff]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = ["E", "F", "W", "I"]
[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",
# comes from fairlearn
"ignore:DataFrame.applymap has been deprecated. Use DataFrame.map instead:FutureWarning",
"ignore:DataFrameGroupBy.apply operated on the grouping columns.:DeprecationWarning",
# Ignore Pandas 2.2 warning on PyArrow. It might be reverted in a later release.
"ignore:\\s*Pyarrow will become a required dependency of pandas.*: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