-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpyproject.toml
195 lines (175 loc) · 4.22 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
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
[tool.poetry]
name = "mlstacks"
version = "0.9.0"
packages = [{ include = "mlstacks", from = "src" }]
description = "MLStacks MLStacks."
authors = ["ZenML GmbH <[email protected]>"]
readme = "README.md"
homepage = "https://mlstacks.zenml.io"
documentation = "https://mlstacks.zenml.io/"
repository = "https://github.com/zenml-io/mlstacks"
license = "Apache-2.0"
keywords = ["machine learning", "production", "pipeline", "mlops", "devops"]
include = ["src/mlstacks", "*.txt", "*.sh", "*.md", "*.tf", "*.yaml"]
exclude = ["tests"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
[tool.poetry.scripts]
mlstacks = "mlstacks.cli.cli:cli"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-version-plugin]
source = "init"
[tool.pytest.ini_options]
addopts = ["--doctest-modules"]
log_cli = true
log_cli_level = "INFO"
testpaths = "tests"
xfail_strict = true
[tool.ruff.format]
exclude = [
".git",
".hg",
".mypy_cache",
".tox",
".venv",
"_build",
"buck-out",
"build",
]
[tool.poetry.dependencies]
# pydantic = {version = "2.0.2"}
# compatible with Core ZenML
python = ">=3.8,<3.12"
pydantic = { version = "~2.7" }
pyyaml = { version = ">=6.0.1" }
click = { version = "^8.0.1,<8.1.4" }
python-terraform = { version = "^0.10.1" }
rich = { version = "^12.0.0" }
analytics-python = { version = "^1.4.0" }
# dev dependencies
ruff = { version = ">=0.1.7", optional = true }
pytest = { version = "^7.4.0", optional = true }
mypy = { version = "^1.7.1", optional = true }
darglint = { version = "^1.8.1", optional = true }
hypothesis = { version = "^6.43.1", optional = true }
types-PyYAML = { version = "^6.0.0", optional = true }
types-requests = { version = "^2.30.0", optional = true }
pytest-clarity = { version = "^1.0.1", optional = true }
pytest-randomly = { version = "^3.10.1", optional = true }
pytest-cov = { version = "^4.1.0", optional = true }
# mypy dependencies
types-setuptools = { version = "^57.4.2", optional = true }
[tool.poetry.extras]
dev = [
"ruff",
"pytest",
"mypy",
"darglint",
"hypothesis",
"types-PyYAML",
"types-requests",
"pytest-clarity",
"pytest-randomly",
"pytest-cov",
"types-setuptools",
]
[tool.ruff]
line-length = 79
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"venv",
'__init__.py',
]
per-file-ignores = {}
select = [
"D",
"E",
"F",
"I",
"I001",
"Q",
"N",
"UP",
"S",
"B",
"A",
"COM",
"C4",
"DTZ",
"EM",
"ISC",
"ICN",
"G",
"INP",
"T20",
"PT",
"Q",
"RSE",
"RET",
"SIM",
"TID",
"TCH",
"ARG",
"PL",
"TRY",
"RUF",
]
ignore = ["COM812", "ISC001"]
src = ["src", "tests"]
# use Python 3.8 as the minimum version for autofixing
target-version = "py38"
ignore-init-module-imports = true
# # Disable autofix for unused imports (`F401`).
# unfixable = ["F401"]
[tool.ruff.flake8-import-conventions.aliases]
altair = "alt"
"matplotlib.pyplot" = "plt"
numpy = "np"
pandas = "pd"
seaborn = "sns"
[tool.ruff.mccabe]
max-complexity = 15
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
namespace_packages = true
show_error_codes = true
ignore_missing_imports = true