forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
94 lines (78 loc) · 2.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
[tool.poetry]
name = "model-registry"
version = "0.1.0"
description = "Client for Red Hat OpenDataHub Model Registry"
authors = ["Isabella Basso do Amaral <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/opendatahub-io/model-registry"
[tool.poetry.urls]
"Issues" = "https://github.com/opendatahub-io/model-registry/issues"
[tool.poetry.dependencies]
python = ">= 3.9, < 3.11"
attrs = "^21.0"
ml-metadata = "^1.14.0"
# you might consider using locally the following alternative, when developing on Apple-silicon/ARM-based computers:
# ml-metadata = { url = "https://github.com/opendatahub-io/ml-metadata/releases/download/v1.14.0%2Bremote.1/ml_metadata-1.14.0+remote.1-py3-none-any.whl" }
typing-extensions = "^4.8"
huggingface-hub = { version = "^0.20.1", optional = true }
[tool.poetry.extras]
hf = ["huggingface-hub"]
[tool.poetry.group.dev.dependencies]
sphinx = "^7.2.6"
furo = "^2023.9.10"
myst-parser = { extras = ["linkify"], version = "^2.0.0" }
pytest = "^7.4.2"
coverage = { extras = ["toml"], version = "^7.3.2" }
pytest-cov = "^4.1.0"
sphinx-autobuild = "^2021.3.14"
ruff = "^0.1.6"
mypy = "^1.7.0"
testcontainers = "^3.7.1"
[tool.coverage.run]
branch = true
source = ["model_registry"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.report]
show_missing = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 119
[tool.ruff]
target-version = "py39"
select = [
"F", # pyflakes
# pycodestyle
"W", # warnings
"E", # errors
"C90", # mccabe
"B", # bugbear
"S", # flake8-bandit
"C4", # flake8-comprehensions
"D", # pydocstyle
"EM", # flake8-errmsg
"I", # isort
"PT", # pytest
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"UP", # pyupgrade
]
respect-gitignore = true
ignore = [
"D105", # missing docstring in magic method
"E501", # line too long
"S101", # use of assert detected
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"tests/**/*.py" = [
"D", # missing docstring in public module
]
[tool.ruff.mccabe]
max-complexity = 8