-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
208 lines (182 loc) · 5.33 KB
/
Copy pathpyproject.toml
File metadata and controls
208 lines (182 loc) · 5.33 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
205
206
207
208
[project]
name = "mxm-scaffold"
version = "0.21.0"
description = "Merantix Momentum AI Platform client library"
authors = [
{name = "Merantix Momentum GmbH"}
]
license = {text = "MIT License"}
readme = "README.md"
requires-python = ">=3.11,<3.13"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
dependencies = [
"matplotlib",
"hydra-zen",
]
[project.urls]
Repository = "https://github.com/merantix-momentum/scaffold-core/"
Documentation = "https://docs.scaffold.merantix-momentum.cloud/"
Homepage = "https://merantix-momentum.com"
[project.entry-points."hydra_plugins"]
aws_secrets = "hydra_plugins.aws_secrets_plugin.aws_secrets_plugin:register_aws_resolver"
gcp_secrets = "hydra_plugins.gcp_secrets_plugin.gcp_secrets_plugin:register_gcp_resolver"
azure_secrets = "hydra_plugins.azure_secrets_plugin.azure_secrets_plugin:register_azure_resolver"
[project.optional-dependencies]
# data
data = [
"tqdm",
"random-name",
"docarray",
"fsspec>=2024.12.0", # Experience shows best keep it updated
"gcsfs>=2024.12.0", # Experience shows best keep it updated
"numpy>=1.0.0; python_version>='3.10'",
"numpy<2.0.0; python_version<'3.10'", # issue with pyarrow if we dont explicitly downgrade in this case
]
# flyte
flyte = [
"cookiecutter>=2.1.1", # Required by flyte, see https://github.com/advisories/GHSA-f4q6-9qm4-h8j4
"docker>=7.1.0", # This version resolves the need for pinning requests https://github.com/docker/docker-py/releases/tag/7.1.0
"flytekit>=1.14.3,<2.0.0", # lower bound due to flytelauncher usage of flytekit api
"flytekitplugins-omegaconf",
"flytekitplugins-pod",
"GitPython>=3.1.50",
"jsonpickle",
"marshmallow-enum>=1.5.1", # flytekit dependency that isn't resolved properly
"pyprojroot>=0.3.0",
]
# torch
torch = [
"torch>=1.13.0",
"lightning",
]
# monitoring
monitoring = [
"nvidia-ml-py",
"psutil",
]
# wandb
wandb = [
"wandb",
"flatten-dict",
]
aim = [
"aim>=3.29.1",
"fsspec>=2024.12.0",
"gcsfs>=2024.12.0",
]
# secrets managers
aws_secrets = [
"boto3",
]
gcp_secrets = [
"google-cloud-secret-manager",
]
azure_secrets = [
"azure-identity",
"azure-keyvault-secrets",
]
[dependency-groups]
# development dependencies
dev = [
"ipykernel>=6.31.0",
"autopep8==1.7.0",
"black==26.3.1",
"mockito",
"pre-commit>=2.16.0",
"py",
"pytest>=9.0.3",
"pytest-cov",
"pytest-git",
"pytest-mock",
"pytest-timeout>=2.1.0",
"pytest-xdist>=3.2.0",
"pytest-xprocess",
"setuptools>81.0.0",
"twine==5.1.1",
"importlib-metadata==7.1.0",
"wheel>=0.46.3",
"build>=0.10,<1.3",
"multiprocess>=0.70.14; sys_platform=='darwin'",
"aim>=3.29.1",
"fsspec>=2024.12.0",
"gcsfs>=2024.12.0",
]
# docs dependencies
docs = [
"sphinx>=7.0",
"sphinx-autoapi",
"sphinx-rtd-theme==3.0.2",
]
[[tool.uv.index]]
name = "PyPI"
priority = "primary"
url = "https://pypi.org/simple"
[[tool.uv.index]]
name = "mxm-pypi-registry"
url = "https://europe-west1-python.pkg.dev/mx-labs-devops/labs-pypi-registry/simple"
explicit = true
authenticate = "always"
[tool.uv.sources]
sphinx-mx-theme = { index = "mxm-pypi-registry" }
[build-system]
requires = ["uv_build>=0.8.11,<0.9.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = ["scaffold", "hydra_plugins"]
namespace = true
[tool.autopep8]
max_line_length = 120
ignore = "E265,E501,E203"
in-place = true
recursive = true
[tool.black]
line-length = 120
include = '\.pyi?$'
[tool.isort]
case_sensitive = false
known_first_party = [
]
known_third_party = [
]
line_length = 120
order_by_type = false
profile = "black"
[tool.ruff]
ignore = [
# E203: Space before :. Deactivated because of incompatibility with black, see https://github.com/ambv/black#slices.
"E203",
# E402: Module level import not at top of file. We sometimes need this (e.g. mparams, dataflow).
"E402",
# W605: Invalid escape sequence 'x'. Necessary because of Flake8 update in
# https://github.com/merantix/core/commit/dee61ff623b2cb08d6827afcea502edb9a8f76fb
"W605",
# Exceptions for the type hinting plugin, flake8-annotations
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for cls in classmethod
"ANN204", # Missing return type annotation for special method, e.g. init
# The following is for the docstring plugin, to make it less whiny. We are happy if we have docs on all functions
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D104", # Missing docstring in public package
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D415", # First line should end with a period, question mark, or exclamation point
]
line-length = 120
[tool.ruff.pydocstyle]
convention = "google"
[tool.mypy]
ignore_missing_imports = true
implicit_optional = true
[tool.pytest.ini_options]
pythonpath = "."
testpaths = ["test"]
python_files = ["test_*.py"]