-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (66 loc) · 1.67 KB
/
pyproject.toml
File metadata and controls
73 lines (66 loc) · 1.67 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
[project]
name = "strings2things"
authors = [
{ name = "Robin Franken", email = "robin.franken@epfl.ch" },
{ name = "Martin Fontanet", email = "martin.fontanet@epfl.ch" },
]
description = "This a repository turns strings into things"
requires-python = ">=3.11"
version = "0.0.1"
dependencies = [
"dotenv>=0.9.9",
"fastapi>=0.116.1",
"openai-agents>=0.0.8",
"pydantic>=2.10.6",
"pydantic-settings>=2.8.1",
"pyfuzon>=0.3.0",
"pytest>=8.4.1",
"python-multipart>=0.0.20",
"rdflib>=7.1.4",
"SPARQLWrapper>=2.0.0",
"rapidfuzz>=3.0.0",
"typer>=0.12.5",
]
[dependency-groups]
dev = [
"notebook>=7.3.2",
]
[project.scripts]
# Primary multi-command CLI (Typer based)
strings2things = 'strings2things.cli:app'
# Shortcut to launch API server directly
strings2things-serve = 'strings2things.cli:serve'
# Backward compatibility alias if previous users relied on `cli`
cli = 'strings2things.cli:app'
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
exclude = [
".direnv",
".devenv",
".output",
]
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py313"
line-length = 88
[tool.ruff.lint]
extend-select = [
"W605", # pycodestyle: invalid-escape-sequence
"S102", # flake8-bandit: exec-builtin
"INP", # flake8-no-pep420
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"PGH", # pygrep-hooks
"PL", # Pylint
"NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = [
"NPY002", # numpy-legacy-random
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["INP001"]
"[!t][!e][!s][!t][!s]*/**" = ["PT"]