-
Notifications
You must be signed in to change notification settings - Fork 809
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 1.97 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (63 loc) · 1.97 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
# Root-level pyproject.toml — test and coverage configuration only.
#
# This file exists because pytest and coverage run from the repo root, but the
# application code lives under src/backend/, src/frontend/, and src/mcp_server/,
# each with their own pyproject.toml for packaging.
#
# Consolidates three former config files:
# - pytest.ini → [tool.pytest.ini_options]
# - .coveragerc → [tool.coverage.*]
# - conftest.py hack → pythonpath (replaced sys.path.insert at runtime)
[tool.pytest.ini_options]
# Load the pytest-asyncio plugin (required for async test functions).
addopts = "-p pytest_asyncio"
# Add src/ to sys.path so tests can import backend modules as
# `from backend.xxx import ...` without runtime sys.path hacks.
pythonpath = ["src"]
markers = [
"integration: marks tests as requiring a live Azure / Foundry environment (deselect with -m 'not integration')",
]
[tool.coverage.run]
source = ["."]
omit = [
"src/mcp_server/*",
"src/tests/mcp_server/*",
"src/tests/agents/*",
"src/**/__init__.py",
"tests/e2e-test/*",
"*/venv/*",
"*/env/*",
"*/.pytest_cache/*",
"*/node_modules/*",
]
[tool.coverage.paths]
source = [
"src/backend",
"*/site-packages",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.pylint.main]
init-hook = 'import sys; sys.path.insert(0, "src"); sys.path.insert(0, "src/backend"); sys.path.insert(0, "src/mcp_server"); sys.path.insert(0, "tests/e2e-test")'
[tool.pylint."messages control"]
disable = [
"broad-exception-caught",
"redefined-outer-name",
"protected-access",
"redefined-builtin",
"unused-import",
"unused-variable",
"unused-argument",
"import-error",
"no-name-in-module",
"attribute-defined-outside-init",
"reimport",
"logging-fstring-interpolation",
"redundant-unittest-assert",
"invalid-character-zero-width-space",
]