-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
157 lines (131 loc) · 4.31 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "deepset-cloud-sdk"
dynamic = ["version"]
description = 'deepset Cloud SDK'
readme = "README.md"
requires-python = ">= 3.8"
license = "Apache-2.0"
keywords = []
authors = [{ name = "deepset", email = "rohan.janjua@deepset.ai" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"structlog>=24.0.0",
"httpx==0.27.2",
"python-dotenv==1.0.1",
"typer==0.12.5",
"tenacity==8.3.0",
"aiohttp==3.10.10",
"aiofiles==23.2.1",
"tabulate==0.9.0",
"tqdm==4.66.4",
"yaspin==3.0.0",
"pyrate-limiter==3.6.0",
]
[project.urls]
Documentation = "https://github.com/deepset-ai/deepset-cloud-sdk#readme"
Issues = "https://github.com/deepset-ai/deepset-cloud-sdk/issues"
Source = "https://github.com/deepset-ai/deepset-cloud-sdk"
[project.scripts]
deepset-cloud = "deepset_cloud_sdk.cli:run_packaged"
[tool.hatch.version]
path = "deepset_cloud_sdk/__about__.py"
[tool.hatch.envs.default.scripts]
tests-with-cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=deepset_cloud_sdk tests/unit"
tests-unit = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=deepset_cloud_sdk tests/unit"
tests-integration = "pytest tests/integration"
[[tool.hatch.envs.all.matrix]]
python = ["3.10"]
[tool.hatch.envs.default]
dependencies = [
"structlog==24.2.0",
"httpx==0.27.2",
"python-dotenv==1.0.1",
"tenacity==8.3.0",
"aiohttp==3.10.10",
"pyrate-limiter==3.6.0",
]
[tool.hatch.envs.test.scripts]
unit-with-cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=deepset_cloud_sdk tests/unit"
integration = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=deepset_cloud_sdk tests/integration"
[tool.hatch.envs.test]
template = 'default'
dependencies = ["pytest-cov==4.0.0", "pytest==7.3.1", "pytest-asyncio==0.21.0"]
[tool.hatch.envs.code-quality]
python = "3.10"
template = 'default'
detached = false
# Please keep these aligned with the versions defined in .pre-commit-config.yaml
dependencies = [
"pylint==2.17.4",
"pydocstyle==6.3.0",
"black==23.3.0",
"isort==5.12.0",
"mypy==1.1.1",
"pre-commit==2.20.0",
"types-aiofiles==23.1.0.2",
"types-tabulate==0.9.0.2",
"autoflake==2.1.1",
]
[tool.hatch.envs.code-quality.scripts]
types = "mypy deepset_cloud_sdk tests"
format = "black deepset_cloud_sdk tests --check"
format-fix = "black deepset_cloud_sdk tests"
lint = "pylint deepset_cloud_sdk"
sort = "isort --check --profile black ."
sort-fix = "isort --profile black ."
hooks = "pre-commit install"
docstrings = "pydocstyle deepset_cloud_sdk"
flake = "autoflake --remove-all-unused-imports --remove-duplicate-keys --remove-unused-variables -v -r ./deepset_cloud_sdk"
all = "hatch run types && hatch run format-fix && hatch run lint && hatch run sort && hatch run docstrings && hatch run flake"
[tool.hatch.envs.tools]
detached = false
# Please keep these aligned with the versions defined in .pre-commit-config.yaml
dependencies = ["pip-tools==6.13.0"]
[tool.hatch.envs.tools.scripts]
requirements = "pip-compile -o requirements.txt pyproject.toml"
[tool.coverage.run]
branch = true
relative_files = true
omit = ["deepset_cloud_sdk/__about__.py"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.black]
line-length = 120
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 150
disable = [
"fixme",
"c-extension-no-member",
"wrong-spelling-in-comment",
"wrong-spelling-in-docstring",
"missing-module-docstring",
]
[tool.pylint.'DESIGN']
max-args = 9
[tool.pylint.'SIMILARITIES']
min-similarity-lines = 10
[tool.pylint.'BASIC']
good-names = ["i", "k", "v", "_", "f1"]
[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/tests"]
[tool.hatch.build.targets.wheel]
packages = ["deepset_cloud_sdk"]