-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (76 loc) · 1.89 KB
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
[project]
name = "moorcheh-sdk"
dynamic = ["version"]
description = "Python SDK for the Moorcheh Semantic Search API"
authors = [{ name = "Majid Fekri majid.fekri@edgeaiinnovations.com" }]
requires-python = ">=3.10,<4"
readme = "README.md"
license = "MIT"
keywords = [
"moorcheh",
"semantic search",
"vector search",
"ai",
"sdk",
]
dependencies = ["httpx>=0.28.1,<0.29"]
[project.urls]
Homepage = "https://www.moorcheh.ai"
Repository = "https://github.com/moorcheh-ai/moorcheh-python-sdk"
[dependency-groups]
dev = [
"pytest>=8.2.0,<9",
"pytest-mock>=3.12.0,<4",
"numpy>=1.26.4,<2",
"mypy>=1.10.0,<2",
"build>=1.2.2.post1,<2",
"twine>=6.1.0,<7",
"pre-commit>=4.4.0,<5",
"ruff>=0.14.6,<0.15",
"pytest-asyncio>=0.23.0,<1",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "moorcheh_sdk/_version.py"
# Optional: Configure MyPy
[tool.mypy]
# --- UPDATE THIS LINE ---
python_version = "3.10" # project's minimum Python version
# ------------------------
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true # Can be helpful initially
# Optional: Configure pytest
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
]
# Optional: Configure Ruff
[tool.ruff]
target-version = "py310"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
]