-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
168 lines (158 loc) · 4.15 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
[tool.poetry]
authors = ["Joao Da Silva <[email protected]>"]
description = "CLI tool for managing ML projects on Vertex AI"
name = "wanna-ml"
version = "0.0.0"
packages = [
{ include = "wanna", from = "src" },
]
include = ["CHANGELOG.md"]
readme = "README.md"
license = "MIT"
keywords = ["mlops", "vertex-ai", "GCP", "google-cloud-platform", "machine-learning"]
homepage = "https://avast.github.io/wanna-ml"
documentation = "https://avast.github.io/wanna-ml"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = ">=3.9.0,<3.12.0"
kfp = "^2.7.0"
google-cloud-aiplatform = "^1.56.0"
google-cloud-build = "^3.24.0"
google-cloud-compute = "^1.19.0"
google-cloud-functions = "^1.16.3"
google-cloud-logging = "^3.10.0"
google-cloud-monitoring = "^2.21.0"
google-cloud-notebooks = "^1.10.3"
google-cloud-scheduler = "^2.13.3"
google-cloud-storage = "^2.17.0"
gcloud-config-helper = "^0.3.1"
case-converter = "^1.1.0"
cookiecutter = "^2.6.0"
cron-validator = "^1.0.8"
dirhash = "^0.5.0"
email-validator = "^2.2.0"
emoji = "^2.12.1"
gitpython = "^3.1.43"
halo = "^0.0.31"
Jinja2 = "^3.1.4"
pathvalidate = "^3.2.0"
pydantic = "^1.10.13"
python-on-whales = "^0.71.0"
pyyaml-include = "^1.3.2"
PyYAML = "^6.0.1"
smart-open = {extras = ["gcs"], version = "^7.0.4"}
treelib = "^1.7.0"
typer = "0.12.5"
waiting = "^1.4.1"
rich = "^13.7.1"
pendulum = "^2.1.2"
igittigitt = "^2.1.4"
[tool.poetry.group.samples.dependencies]
google-cloud-pipeline-components = "^2.8.0"
xgboost = "^2.0.3"
scikit-learn = "^1.3.2"
[tool.poetry.group.dev.dependencies]
mkdocs-click = "^0.8.1"
mkdocs-material = "^9.4.6"
mkdocs-typer = "^0.0.3"
mkdocstrings = "^0.23.0"
mkdocstrings-python = "^1.7.3"
mkautodoc = "^0.2.0"
markdown = "^3.5"
mock = "^5.1.0"
mypy = "^1.5.1"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
pytest-ruff = "^0.2.1"
pytest-mypy = "^0.10.3"
pytest-mock = "^3.12.0"
poethepoet = "^0.22.0"
black = "^23.7.0"
types-mock = "^5.1.0.3"
types-pyyaml = "^6.0.12"
types-requests = "^2.31.0"
types-setuptools = "^68.2.0"
pre-commit = "^2.19.0"
[tool.pytest.ini_options]
addopts = """
--verbose
--ruff
--mypy
--cov-report term
--cov-report xml:coverage.xml
--cov=src
--durations=0
--ignore=src/wanna/components/templates
--ignore=templates
--ignore=samples
"""
filterwarnings = [
"error",
"ignore::UserWarning", # note the use of single quote below to denote "raw" strings in TOML
'ignore::DeprecationWarning',
'ignore::SyntaxWarning',
'ignore::ResourceWarning',
]
[tool.poe.tasks]
_black = "black ."
_ruff = "ruff --select I --fix ."
format-code = ["_black", "_ruff"]
docs-deploy = "mkdocs gh-deploy --force"
docs-serve = "mkdocs serve"
[tool.ruff]
line-length = 120
show-source = true
select = ["E", "F", "I", "PERF", "ARG"]
ignore = [
"E1", # handled by Black
"E4", # handled by Black
"E5", # handled by Black
"E722",
"PERF401"
]
extend-exclude = [
"**pb2.py",
"**pb2.pyi",
"src/wanna/components/templates/**",
"samples/**",
"templates/blank/**",
"templates/sklearn/**"
]
[tool.mypy]
exclude = [
"src/wanna/components/templates/**",
"templates/blank/**",
"templates/sklearn/**",
"samples/pipelines/"
]
follow_imports = "silent"
strict = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
implicit_reexport = true
ignore_missing_imports = true
[tool.poetry.scripts]
wanna = "wanna.cli.__main__:wanna"
[tool.black]
extend-ignore = "E203"
max-line-length = 120
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]