-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
204 lines (172 loc) · 5.64 KB
/
Copy pathpyproject.toml
File metadata and controls
204 lines (172 loc) · 5.64 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[project]
name = "horus-runtime"
description = "The Horus workflow manager runtime. Execute advanced workflows with multi-environment support, HPC integration, automatic artifact management, and more."
readme = "README.md"
authors = [{ name = "Temple Compute", email = "christian@templecompute.com" }]
license-files = ["LICENSE"]
dynamic = ["version"]
requires-python = ">=3.13"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
]
dependencies = [
"click>=8.3.3",
"cloudpickle>=3.0",
"loguru~=0.7",
"pydantic~=2.0",
"pydantic_settings~=2.0",
"pyyaml~=6.0",
"rich>=13.7",
]
[project.urls]
Homepage = "https://templecompute.com"
Documentation = "https://docs.templecompute.com"
Source = "https://github.com/temple-compute/horus-runtime"
Issues = "https://github.com/temple-compute/horus-runtime/issues"
[project.scripts]
horus = "horus_runtime.cli:main"
# ================
# Built-in plugins
# ================
[project.entry-points."horus.artifact"]
file = "horus_builtin.artifact.file"
folder = "horus_builtin.artifact.folder"
json = "horus_builtin.artifact.json"
pickle = "horus_builtin.artifact.pickle"
number = "horus_builtin.artifact.number"
boolean = "horus_builtin.artifact.boolean"
string = "horus_builtin.artifact.string"
[project.entry-points."horus.executor"]
shell = "horus_builtin.executor.shell"
python_exec = "horus_builtin.executor.python_exec"
python_fn = "horus_builtin.executor.python_fn"
python_fn_external = "horus_builtin.executor.python_fn_external"
[project.entry-points."horus.interaction"]
common = "horus_builtin.interaction.common"
[project.entry-points."horus.interaction_renderer"]
cli = "horus_builtin.interaction.cli"
[project.entry-points."horus.interaction_transport"]
cli = "horus_builtin.interaction.cli"
[project.entry-points."horus.middleware.task"]
task_time = "horus_builtin.middleware.task_time"
task_log_file = "horus_builtin.middleware.task_log_file"
[project.entry-points."horus.middleware.workflow"]
workflow_time = "horus_builtin.middleware.workflow_time"
[project.entry-points."horus.runtime"]
command = "horus_builtin.runtime.command"
python_string = "horus_builtin.runtime.python_string"
python = "horus_builtin.runtime.python"
python_script = "horus_builtin.runtime.python_script"
[project.entry-points."horus.subscriber"]
log_event_subscriber = "horus_builtin.event.log_subscriber"
[project.entry-points."horus.target"]
local = "horus_builtin.target.local"
[project.entry-points."horus.task"]
horus_task = "horus_builtin.task.horus_task"
horus_map = "horus_builtin.workflow.map"
subworkflow = "horus_builtin.workflow.subworkflow.expander"
[project.entry-points."horus.transfer"]
local_to_local = "horus_builtin.transfer.local_noop"
[project.entry-points."horus.workflow"]
horus_workflow = "horus_builtin.workflow.horus_workflow"
[dependency-groups]
dev = [
"babel~=2.0",
"licenseheaders~=0.8",
"mypy~=1.19",
"pre_commit~=4.0",
"pytest~=9.0",
"pytest-asyncio~=1.3.0",
"pytest-cov~=7.0",
"ruff~=0.15",
"types-PyYAML~=6.0",
"uv-dynamic-versioning>=0.14.0",
]
[build-system]
requires = ["hatchling>=1.29,<2.0", "uv-dynamic-versioning>=0.14.0,<1.0"]
build-backend = "hatchling.build"
# Other tool configurations
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.hatch.build.targets.wheel]
packages = ["src/horus_runtime", "src/horus_builtin"]
# Compiled translations are git-ignored (*.mo) but must ship in the wheel.
artifacts = ["src/horus_runtime/locale/**/*.mo"]
[tool.hatch.build.targets.sdist]
include = ["src/horus_runtime", "src/horus_builtin", "tests"]
artifacts = ["src/horus_runtime/locale/**/*.mo"]
[tool.mypy]
python_version = "3.13"
strict = true
exclude = ["build", "dist"]
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["cloudpickle.*"]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_typed = true
init_forbid_extra = true
warn_required_dynamic_aliases = true
[tool.pytest]
addopts = [
"--cov-fail-under=90",
"--cov-report=html",
"--cov-report=term-missing",
"--cov=src",
"--verbose",
]
minversion = "7.0"
python_classes = ["Test*"]
python_files = ["*_test.py", "test_*.py"]
python_functions = ["test_*"]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
line-length = 79
target-version = "py313"
exclude = [".git", ".venv", "build", "dist", "__pycache__"]
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"PL", # pylint
"RUF", # ruff-specific
"ARG", # ruff-arglint
"SLF", # ruff-slf
]
extend-select = ["T201"] # Prevent use of print()
ignore = [
"E203", # Whitespace before ':', conflicts with formatter
"D104", # Missing docstring in class __init__
"D107", # Missing docstring in __init__.py
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D200", # One-line docstring should fit on one line
"PLR0913", # Too many arguments in function/method
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"SLF001", # Allow private method access in tests
"PLR2004" # Magic number in tests is fine
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.uv-dynamic-versioning]
fallback-version = "0.0.1"