-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
111 lines (97 loc) · 2.34 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
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
[build-system]
requires = ["setuptools"]
[project]
name = "neuroagent"
authors = [
{name = "Blue Brain Project, EPFL"},
]
description = "Search agent for neuroscience."
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"aiosqlite",
"asgi-correlation-id",
"asyncpg",
"bluepyefe",
"efel",
"fastapi",
"langchain",
"langchain-cohere",
"langchain-openai",
"langgraph",
"langgraph-checkpoint-postgres",
"langgraph-checkpoint-sqlite",
"neurom",
"psycopg-binary",
"pydantic-settings",
"python-dotenv",
"python-keycloak",
"sqlalchemy[asyncio]",
"uvicorn",
]
[project.optional-dependencies]
dev = [
"alembic",
"bandit[toml]",
"mypy",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-httpx",
"responses",
"ruff",
"types-requests",
]
[project.scripts]
neuroagent-api = "neuroagent.scripts.neuroagent_api:main"
[tool.setuptools.dynamic]
version = {attr = "neuroagent.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.bandit]
exclude_dirs = ["tests"]
[tool.black]
line-length = 88
preview = true
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.mypy]
mypy_path = "src"
python_version = "3.10"
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
plugins = [
"pydantic.mypy", "sqlalchemy.ext.mypy.plugin"
]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
filterwarnings = [
"error",
"ignore:Use get_feature_values:DeprecationWarning",
"ignore:Mean of empty slice:RuntimeWarning",
"ignore:Degrees of freedom:RuntimeWarning",
"ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning",
"ignore:This API is in beta:langchain_core._api.beta_decorator.LangChainBetaWarning",
"ignore:The configuration option 'asyncio_default_fixture_loop_scope' is unset."
]
addopts = "--cov=src/ -v --cov-report=term-missing --durations=20 --no-cov-on-fail"