forked from red-hat-data-services/red-hat-ai-examples
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 1.62 KB
/
pyproject.toml
File metadata and controls
87 lines (77 loc) · 1.62 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
85
86
87
[project]
name = "red-hat-ai-examples"
version = "0.1.0"
description = "Red Hat AI Examples - Notebooks and flows for AI/ML on Red Hat platforms"
requires-python = ">=3.11"
readme = "README.md"
license = {text = "Apache-2.0"}
[project.optional-dependencies]
test = [
"pytest>=8.3.0",
"pytest-cov>=6.0.0",
"pytest-xdist>=3.6.0",
"nbformat>=5.10.0",
"nbconvert>=7.16.0",
"jupyter>=1.1.0",
"ipykernel>=6.29.0",
"polars>=1.17.0",
"pyyaml>=6.0",
"tomli>=2.0.0; python_version < '3.11'",
]
dev = [
"ruff>=0.8.0",
"pre-commit>=4.0.0",
]
[tool.pytest.ini_options]
# Test discovery patterns
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
# Test paths
testpaths = ["tests"]
# Add markers
markers = [
"smoke: Smoke tests that run quickly",
"validation: Validation tests for notebook structure",
"slow: Tests that take longer to run",
"integration: Integration tests",
]
# Output options
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--disable-warnings",
]
# Ignore certain paths
norecursedirs = [
".git",
".tox",
"dist",
"build",
"*.egg",
"examples/*/output",
"examples/*/.venv",
".venv",
"venv",
]
# Filter warnings
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["examples"]
omit = [
"*/.venv/*",
"*/venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]