-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (52 loc) · 1.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
[tool.poetry]
name = "compass-sdk"
version = "0.12.0"
authors = []
description = "Compass SDK"
readme = "README.md"
packages = [{ include = "cohere" }]
[tool.poetry.dependencies]
fsspec = ">=2024.6.1"
joblib = "1.4.2"
pydantic = ">=2.6.3"
python = ">=3.9,<4.0"
requests = ">=2.25.0,<3.0.0"
tenacity = "8.2.3"
[tool.poetry.group.dev.dependencies]
pyright = "^1.1.390"
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
pytest-mock = "^3.14.0"
requests-mock = "^1.12.1"
ruff = "^0.8.1"
[tool.pyright]
reportMissingImports = false
typeCheckingMode = "strict"
venv = ".venv"
venvPath = "."
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"C90", # mccabe (for code complexity)
"D", # pydocstyle
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"Q", # flakes8-quotes
"RUF", # Ruff-specific
"UP", # pyupgrade
]
ignore = [
"D100", # ignore missing docstring in module
"D104", # ignore missing docstring in public package
"D212", # ignore multi-line docstring summary should start at the first line
]
isort = { known-first-party = ["cohere.compass"] }
mccabe = { max-complexity = 15 }
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"]