-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
214 lines (195 loc) · 4.24 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
[tool.poetry]
name = "coalescenceml"
version = "0.1.0"
description = "An open-source MLOps framework to develop industry-grade production ML pipelines coalescing the MLOps stack under one umbrella."
authors = ["Magd Bayoumi, Rafael Chaves, Elva Gao, Sanjali Jha, Iris Li, Jerry Sun, Emily Wang"]
license = "Apache License 2.0"
packages = [
{ include = "coalescenceml", from = "src" },
]
readme = "README.md"
keywords = [
"mlops", "machine learning", "pipeline"
]
classifiers = [
"Typing :: Typed",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
exclude = [
"*.tests",
"*.tests.*",
"tests.*",
"tests",
"docs",
"examples"
]
include = [
"src/coalescenceml",
"*.txt",
"*.md",
"*.sh"
]
[tool.poetry.scripts]
coml = "coalescenceml.cli.cli:cli"
[tool.poetry.dependencies]
python = ">=3.7.1,<3.9"
ml-pipelines-sdk = "^1.6.1"
rich = {extras = ["jupyter"], version="^12.0.0"}
pydantic = "^1.9.0"
click = "^8.0.1"
pyyaml = "^5.4.1"
python-dateutil = "^2.8.1"
sqlmodel = "~0.0.6"
semver = "^2.13.0"
distro = "^1.7.0"
numpy = "^1.21.6"
pandas = "^1.2.0"
pyarrow = "^7.0.0"
[tool.poetry.dev-dependencies]
xdoctest = "^0.15.10"
coverage = "^6.3.1"
tox = "^3.24.5"
flake8 = "^4.0.1"
flake8-docstrings = "^1.6.0"
darglint = "^1.8.1"
black = "^22.1.0"
isort = "^5.10.1"
seed-isort-config = "^2.2.0"
pre-commit = "^2.17.0"
interrogate = "^1.5.0"
autoflake = "^1.4"
hypothesis = "^6.36.2"
typing-extensions = "^4.1.1"
pyment = "^0.3.3"
# pytest special ones
pytest = "^7.0.1"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
pytest-randomly = "^3.11.0"
pytest-clarity = "^1.0.1"
# mkdocs plus plugins
mkdocs = "^1.2.3"
mkdocs-material = "^8.1.11"
mkdocs-awesome-pages-plugin = "^2.7.0"
mkdocstrings = "^0.18.0"
pydocstyle = "^6.1.1"
mike = "^1.1.2"
# mypy type stubs
mypy = "^0.931"
types-certifi = "^2021.10.8.0"
types-croniter = "^1.0.7"
types-futures = "^3.3.8"
types-Markdown = "^3.3.12"
types-protobuf = "^3.19.12"
types-PyMySQL = "^1.0.13"
types-python-dateutil = "^2.8.9"
types-python-slugify = "^5.0.3"
types-PyYAML = "^6.0.4"
types-setuptools = "^57.4.9"
types-six = "^1.16.10"
types-tabulate = "^0.8.5"
types-termcolor = "^1.1.3"
types-psutil = "^5.8.20"
codespell = "^2.1.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.tox]
name = "CoML"
authors = ["CDS"]
legacy_tox_ini = """
[tox]
isolated_build = true
skipsdist = true
envlist = py37,py38,py39
[testenv]
whitelist_externals = poetry
commands =
poetry install -v
poetry run pytest tests
poetry run bash scripts/mypy.sh --install-types
"""
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
testpaths = "tests"
xfail_strict = true
[tool.coverage.run]
parallel = true
source = [
"src/coalescenceml"
]
[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
multi_line_output = 3
lines_after_imports = 2
force_grid_wrap = 0
combine_as_imports = true
include_trailing_comma = true
[tool.mypy]
strict = true
namespace_packages = true
show_error_codes = true
# import all tfx.proto.* and google files as `Any`
[[tool.mypy.overrides]]
module = [
"tfx.proto.*",
]
follow_imports = "skip"
[[tool.mypy.overrides]]
module = [
"pyarrow.*",
"pandas.*",
"ml_metadata.*",
"distro.*",
"absl.*",
"numpy.*",
]
ignore_missing_imports = true
[tool.black]
line-length = 80
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 = false
ignore-nested-functions = false
ignore-nested-classes = false
ignore-setters = false
fail-under = 50
exclude = ["setup.py", "docs", "build"]
ignore-regex = []
verbose = 1
quiet = false
whitelist-regex = []
color = true