-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
127 lines (113 loc) · 3.46 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=61", "setuptools_scm[toml]>=7"]
[project]
name = "gto"
description = "Version and deploy your models following GitOps principles"
readme = "README.md"
license = {text = "Apache License 2.0"}
authors = [{name = "Alexander Guschin", email = "[email protected]"}]
keywords = ["git", "repo", "repository", "artifact", "registry", "developer-tools", "collaboration"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9"
dynamic = ["version"]
dependencies = [
"entrypoints",
"funcy",
# pydantic.v1.parse_obj is broken in ==2.0.0:
# https://github.com/pydantic/pydantic/issues/6361
"pydantic>=1.9.0,<3,!=2.0.0",
"rich",
"ruamel.yaml",
"scmrepo>=3,<4",
"semver>=2.13.0",
"tabulate>=0.8.10",
"typer>=0.4.1",
]
[project.urls]
Issues = "https://github.com/iterative/gto/issues"
Source = "https://github.com/iterative/gto"
[project.optional-dependencies]
tests = [
"freezegun",
"pygit2",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-test-utils",
]
dev = [
"gto[tests]",
"mypy==1.13.0",
"pylint==3.3.2",
"types-PyYAML",
"types-filelock",
"types-freezegun",
"types-requests",
"types-setuptools",
"types-six",
"types-tabulate",
]
[project.scripts]
gto = "gto.cli:app"
[project.entry-points."gto.enrichment"]
gto = "gto.index:GTOEnrichment"
[tool.setuptools_scm]
write_to = "gto/_gto_version.py"
[tool.pytest.ini_options]
addopts = "-rav --durations=0 --cov=gto --cov-report=term-missing --cov-report=xml"
log_level = "debug"
markers = [
"long: Marks long-running tests",
]
testpaths = ["tests"]
[tool.mypy]
files = ["gto", "tests"]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
disable_error_code = ["misc"]
plugins = ["pydantic.mypy"]
# See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports.
ignore_missing_imports = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
[tool.ruff]
output-format = "full"
show-fixes = true
[tool.ruff.lint]
extend-select = ["I", "B", "C4", "C90", "T10", "Q"]
[tool.ruff.lint.isort]
known-first-party = ["gto", "tests"]
[tool.pylint.master]
extension-pkg-whitelist = ["pydantic", "pytest-lazy-fixture", "pygit2", "pytest"]
load-plugins= ["pylint.extensions.no_self_use"]
[tool.pylint.message_control]
enable = ["c-extension-no-member", "no-else-return", "no-self-use"]
disable = [
"format", "refactoring", "spelling", "design",
"invalid-name", "duplicate-code", "fixme",
"unused-wildcard-import", "cyclic-import", "wrong-import-order",
"wrong-import-position", "ungrouped-imports", "multiple-imports",
"logging-format-interpolation", "logging-fstring-interpolation",
"missing-function-docstring", "missing-module-docstring",
"missing-class-docstring", "raise-missing-from", "import-outside-toplevel",
"redefined-builtin", # fixme
]
[tool.pylint.variables]
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"
ignored-argument-names = "_.*|^ignored_|^unused_|args|kwargs"