-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
159 lines (138 loc) · 3.72 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
[tool.poetry]
name = "matcha-ml"
version = "0.2.9"
description = "Matcha: An open source tool for provisioning MLOps environments to the cloud."
authors = ["FuzzyLabs <info@fuzzylabs.ai>"]
license = "Apache-2.0"
homepage = "http://fuzzylabs.github.io/matcha"
documentation = "http://fuzzylabs.github.io/matcha"
repository = "https://github.com/fuzzylabs/matcha"
readme = "README.md"
keywords = ["production", "mlops", "devops", "machine learning"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{include = "matcha_ml", from = "src"}]
exclude = [
"docs",
"tests.*",
"*.tests",
"tests",
"*.tests.*",
]
include = [
"src/matcha_ml",
"src/matcha_ml/infrastructure/**",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/fuzzylabs/matcha/issues"
[tool.poetry.scripts]
matcha = "matcha_ml.cli.cli:app"
[tool.poetry.dependencies]
python = "^3.8"
typer = {extras = ["all"], version = "^0.7.0"}
python-terraform = "^0.10.1"
azure-identity = "^1.12.0"
azure-mgmt-resource = "^23.0.0"
azure-mgmt-subscription = "^3.1.1"
azure-mgmt-authorization = "^3.0.0"
azure-mgmt-confluent = "^1.0.0"
pyyaml = "^6.0.1"
types-pyyaml = "^6.0.12.9"
segment-analytics-python = "^2.2.2"
azure-mgmt-storage = "^21.0.0"
dataclasses-json = "^0.5.7"
azure-storage-blob = "^12.16.0"
urllib3 = "1.26.6"
types-urllib3 = "^1.26.25.13"
requests = "^2.31.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.1.1"
pytest = "^7.2.2"
pytest-cov = "^4.0.0"
mypy = "^1.1.1"
[tool.poetry.group.doc.dependencies]
mkdocs-glightbox = "^0.3.4"
pymdown-extensions = "10.0"
mkdocs-material = "^9.1.12"
mkdocstrings = "0.22.0"
mkdocstrings-python = "1.1.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
show_error_codes = true
exclude = ["docs", "test"]
strict = true
namespace_packages = true
[tool.ruff]
# use Python 3.8 as the minimum version for autofixing
target-version = "py38"
select = [
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"Q", # flake8-quotes
"ISC", # flake8-implicit-str-concat
"F", # pyflakes
"D", # pydocstyle
"E", # pycodestyle error
"W", # pycodestyle warning
"N", # pep8-naming
"I", # isort
"PL", # pylint rules from categories "Convention", "Error", and "Warning"
"PLE", # ruff currently implements only a subset of pylint's rules
"PLW", # pylint warning
"PLR", # pylint refactor
"UP", # pyupgrade
"C", # Complexity (mccabe+) & comprehensions
]
# Match black. Note that this also checks comment line length, but black does not format comments.
line-length = 88
show-fixes = true
ignore = [
"E501" # Line too long
]
ignore-init-module-imports = true
# Allow imports relative to the "src" and "test" directories.
src = ["src", "test"]
[tool.ruff.mccabe]
max-complexity = 18
[tool.ruff.pyupgrade]
keep-runtime-typing = true
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[[tool.mypy.overrides]]
module = [
"python_terraform.*",
"segment.*"
]
ignore_missing_imports = true
[tool.ruff.pylint]
max-branches = 14
max-args = 6