Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (127 loc) · 4.32 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (127 loc) · 4.32 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
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
[project]
name = "talanton"
version = "0.14.0"
description = "An agentic hiring pipeline: draft the role, screen what arrives, surface only who is worth reading."
readme = "README.md"
requires-python = ">=3.11"
# The SPDX form, not the table: `{ text = ... }` is the pre-PEP-639 spelling
# and is deprecated by every current build backend.
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Daniel Vogler" }]
maintainers = [{ name = "Daniel Vogler" }]
keywords = [
"hiring",
"recruiting",
"cv-screening",
"applicant-screening",
"agents",
"google-adk",
"email",
"shortlist",
]
# Every supported version is listed, because `requires-python` alone tells a
# PyPI reader nothing they can see on the page.
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Other Audience",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Office/Business",
"Topic :: Communications :: Email",
"Typing :: Typed",
]
dependencies = [
# >=2.0, not >=1.0: `google.adk.apps.App` and `InMemoryRunner(app=...)` do not
# exist before 1.14, and 2.x is the only line CI actually resolves against.
"google-adk>=2.0,<3",
# A .docx and an .odt are XML written by a stranger, and `xml.etree` expands
# entities. Pure Python, no dependencies of its own.
"defusedxml>=0.7",
"imapclient>=3.0",
"pypdf>=5.0",
"pyyaml>=6.0",
]
[project.urls]
Homepage = "https://github.com/danielvogler/talanton"
Source = "https://github.com/danielvogler/talanton"
Issues = "https://github.com/danielvogler/talanton/issues"
Changelog = "https://github.com/danielvogler/talanton/blob/main/CHANGELOG.md"
[project.scripts]
talanton = "talanton.cli:main"
[project.optional-dependencies]
dev = ["pytest>=8.0", "ruff>=0.8", "mypy>=1.13", "types-PyYAML", "pre-commit>=4.0"]
# Only needed when a location uses backend = "gdrive". Auth is application default
# credentials; there is never a service-account key file.
gdrive = ["google-api-python-client>=2.140", "google-auth>=2.30"]
# Only needed when a location uses backend = "gcs".
gcs = ["google-cloud-storage>=2.18"]
# Only needed when a mailbox password lives in Secret Manager rather than .env.
secrets = ["google-cloud-secret-manager>=2.20"]
# Only needed when screening.model is a Claude id. ADK registers `claude-*` and
# imports this package to serve it; nothing here imports it directly.
anthropic = ["anthropic[vertex]>=0.60"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["talanton"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 112
target-version = "py311"
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # import sorting
"UP", # pyupgrade
"B", # bugbear
"SIM", # simplify
"C4", # comprehensions
"RET", # returns
"PTH", # use pathlib
"N", # naming
"TRY", # exception antipatterns
"RUF",
]
ignore = [
"TRY003", # long messages in raises: this project explains itself in them, deliberately
"TRY400", # logging.error over .exception, where the traceback is not the point
"RET504", # a named return value is often the clearer thing
"RUF001", # en dashes in prose and in salary ranges are deliberate
]
[tool.ruff.lint.per-file-ignores]
# Tests say what they mean in the name and the body; asserts and long lines are fine.
"tests/*" = ["E501", "N802"]
[tool.mypy]
python_version = "3.11"
files = ["talanton"]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
no_implicit_optional = true
check_untyped_defs = true
disallow_untyped_defs = false
# Google's client libraries and ADK ship no usable stubs.
[[tool.mypy.overrides]]
module = [
"defusedxml.*",
"google.*",
"google.cloud.*",
"google_auth_httplib2.*",
"googleapiclient.*",
"httplib2.*",
"imapclient.*",
"pypdf.*",
"yaml.*",
]
ignore_missing_imports = true
follow_imports = "skip"