forked from zenml-io/zenml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
232 lines (212 loc) · 4.67 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
[tool.poetry]
name = "zenml"
version = "0.5.6"
packages = [
{ include = "zenml", from = "src" },
]
description = "ZenML: Write production-ready ML code."
authors = ["ZenML GmbH <[email protected]>"]
readme = "README.md"
homepage = "https://zenml.io"
documentation = "https://docs.zenml.io"
repository = "https://github.com/zenml-io/zenml"
license = "Apache-2.0"
keywords = [
"machine learning", "production", "pipeline", "mlops", "devops"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
exclude = [
"*.tests",
"*.tests.*",
"tests.*",
"tests",
"docs",
"legacy",
"examples"
]
include = [
"src/zenml",
"*.txt",
"*.md",
"*.sh"
]
[tool.poetry.scripts]
zenml = "zenml.cli.cli:cli"
[tool.poetry.dependencies]
python = ">=3.6.2,<3.9"
ml-pipelines-sdk = "^1.3.0"
pandas = "^1.1.5"
apache-beam = "^2.30.0"
pyyaml = "^5.4.1"
python-dateutil = "^2.8.1"
gitpython = "^3.1.18"
click = "^8.0.1"
pydantic = "<=1.8.2"
analytics-python = "^1.4.0"
distro = "^1.6.0"
tabulate = "^0.8.9"
[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
mypy = "^0.920"
flake8 = "^3.9.2"
black = "^21.7b0"
interrogate = "^1.4.0"
coverage = { extras = ["toml"], version = "^5.5" }
isort = "^5.9.3"
pre-commit = "^2.14.0"
autoflake = "^1.4"
pyment = "^0.3.3"
tox = "^3.24.3"
hypothesis = "^6.23.0"
Sphinx = "^4.2.0"
furo = "^2021.10.9" # sphinx theme
sphinx-copybutton = "^0.4.0"
typing-extensions = ">=3.7.4"
pytest-randomly = "^3.10.1"
# mypy type stubs
types-certifi = "^2021.10.8.0"
types-croniter = "^1.0.2"
types-futures = "^3.3.1"
types-Markdown = "^3.3.6"
types-protobuf = "^3.18.0"
types-PyMySQL = "^1.0.4"
types-python-dateutil = "^2.8.2"
types-python-slugify = "^5.0.2"
types-PyYAML = "^6.0.0"
types-setuptools = "^57.4.2"
types-six = "^1.16.2"
types-tabulate = "^0.8.3"
types-termcolor = "^1.1.2"
types-psutil = "^5.8.13"
pytest-mock = "^3.6.1"
codespell = "^2.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-version-plugin]
source = "init"
[tool.tox]
name = "ZenML"
authors = ["Hamza Tahir <[email protected]>"]
legacy_tox_ini = """
[tox]
isolated_build = True
skipsdist = true
envlist = py36,py37,py38,py39
[testenv]
whitelist_externals = poetry
commands =
poetry install -v --extras all
poetry run pytest tests
poetry run bash scripts/mypy.sh --install-types
"""
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning",
]
log_cli = true
log_cli_level = "INFO"
testpaths = "tests"
xfail_strict = true
[tool.coverage.run]
parallel = true
source = [
"src/zenml"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
[tool.isort]
profile = "black"
known_third_party = []
skip_glob = []
line_length = 80
[tool.mypy]
strict = true
namespace_packages = true
show_error_codes = true
# temporary fix for python 3.8 https://github.com/apache/airflow/discussions/19006
# remove once the issue is solved in airflow
exclude = "airflow/"
[[tool.mypy.overrides]]
module = "airflow.*"
follow_imports = "skip"
# end of fix
[[tool.mypy.overrides]]
module = [
"tensorflow.*",
"apache_beam.*",
"pyarrow.*",
"pandas.*",
"ml_metadata.*",
"distro.*",
"analytics.*",
"absl.*",
"gcsfs.*",
"torch.*",
"pytorch_lightning.*",
"sklearn.*",
"numpy.*",
"facets_overview.*",
"IPython.core.*",
"plotly.*",
"graphviz.*",
"dash.*",
"dash_bootstrap_components.*",
"dash_cytoscape",
"dash.dependencies",
"docker.*",
"kfp.*",
"kubernetes.*",
"urllib3.*"
]
ignore_missing_imports = true
[tool.black]
line-length = 80
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["setup.py", "docs", "build"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 1
quiet = false
whitelist-regex = []
color = true