-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
164 lines (147 loc) · 3.34 KB
/
pyproject.toml
File metadata and controls
164 lines (147 loc) · 3.34 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[project]
name = "runpod-flash"
version = "1.9.1"
description = "A Python library for distributed inference and serving of machine learning models"
authors = [
{ name = "Runpod", email = "engineer@runpod.io" },
]
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.10,<3.13"
dependencies = [
"cloudpickle>=3.1.1",
"runpod",
"python-dotenv>=1.0.0",
"pydantic>=2.0.0",
"rich>=14.0.0",
"typer>=0.12.0",
"questionary>=2.0.0",
"pathspec>=0.11.0",
"tomli>=2.0.0; python_version < '3.11'",
]
[dependency-groups]
dev = [
"mypy>=1.16.1",
"ruff>=0.11.9",
"mcp>=1.0.0",
]
test = [
"pytest>=8.4.1",
"pytest-mock>=3.14.0",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.2.1",
"pytest-xdist>=3.6.1",
"pytest-timeout>=2.3.1",
"twine>=6.1.0",
]
[project.scripts]
flash = "runpod_flash.cli.main:app"
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
runpod_flash = [
"cli/utils/skeleton_template/**/*",
"cli/utils/skeleton_template/**/.*",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--cov=runpod_flash",
"--cov-report=term-missing",
"--cov-fail-under=65"
]
timeout = 30
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
"serial: Tests that must run serially (not parallelized)"
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"ignore::pytest.PytestDeprecationWarning",
"ignore::pytest.PytestUnknownMarkWarning"
]
[tool.mypy]
# Basic configuration
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, can be stricter later
disallow_incomplete_defs = false
check_untyped_defs = true
# Import discovery
mypy_path = "."
namespace_packages = true
# Error output
show_error_codes = true
show_column_numbers = true
pretty = true
# Exclude directories
exclude = [
"tests/", # Start by excluding tests, can add later
]
# Per-module options
[[tool.mypy.overrides]]
module = [
"runpod.*",
"cloudpickle.*",
]
ignore_missing_imports = true
[tool.coverage.run]
parallel = true
branch = false
source = ["runpod_flash"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.coverage.paths]
source = [
"src/runpod_flash",
"*/site-packages/runpod_flash",
]
[tool.ruff]
target-version = "py310"
line-length = 88
exclude = [
".venv",
".git",
"__pycache__",
"dist",
"build",
]
[tool.uv.sources]
runpod = { git = "https://github.com/runpod/runpod-python", rev = "main" }