-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (95 loc) · 2.84 KB
/
Copy pathpyproject.toml
File metadata and controls
106 lines (95 loc) · 2.84 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "yente-client"
version = "0.2.0"
description = "Client SDK for the yente / OpenSanctions matching API."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "OpenSanctions" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.5,<3",
"httpx>=0.27,<1",
]
[project.optional-dependencies]
cli = [
"typer>=0.12",
"rich>=13",
]
mcp = [
"fastmcp>=3.4",
]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"pytest-cov",
"respx>=0.21",
"ruff>=0.6",
"mypy>=1.11",
"jinja2>=3",
"python-dotenv>=1.0",
# CLI deps so `make test` exercises the CLI test suite without a separate
# extra install. Mirrors yente-client[cli].
"typer>=0.12",
"rich>=13",
# MCP server deps so `make test` can import yente_client.mcp.server.
# Mirrors yente-client[mcp].
"fastmcp>=3.4",
# Docs build (`make docs`): mkdocs + Material theme + mkdocstrings extracts
# docstrings inline at build time; no separate regeneration step needed.
"yente-client[docs]",
# Version bumper. Mirrors the toolchain in ../yente (and pinned to the
# same release for cross-repo muscle memory). Run from the repo root:
# bump2version --verbose minor # or patch / major
"bump2version == 1.0.1",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.26",
]
[project.scripts]
yente-cli = "yente_client.cli.main:main"
yente-mcp = "yente_client.mcp.main:main"
[project.urls]
Homepage = "https://github.com/opensanctions/yente-client"
Repository = "https://github.com/opensanctions/yente-client"
[tool.hatch.build.targets.wheel]
packages = ["src/yente_client"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
# Generated files (entities/_generated.py, entities/__init__.py,
# schemas/_literals.py) carry a `# ruff: noqa` header from the template
# rather than being excluded here.
[tool.ruff.lint.per-file-ignores]
# Typer's idiom is `... = typer.Option(...)` in function defaults; B008
# (function call in default) doesn't apply.
"src/yente_client/cli/*.py" = ["B008"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
strict = true
python_version = "3.11"
files = ["src/yente_client"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
asyncio_mode = "auto"
markers = [
"live: requires a live yente API (env: OPENSANCTIONS_API_KEY); skip by default with -m 'not live'",
]