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
|
[project]
name = "trading-platform"
version = "0.1.0"
description = "US stock trading platform"
requires-python = ">=3.12"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["shared/tests", "services", "cli/tests", "tests"]
addopts = "--import-mode=importlib"
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "ASYNC", "PERF", "C4", "RUF"]
ignore = ["E501", "RUF012", "B008", "ASYNC240"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F841"]
"*/tests/*" = ["F841"]
[tool.ruff.lint.isort]
known-first-party = ["shared"]
[tool.coverage.run]
branch = true
source = ["shared/src", "services"]
omit = ["*/tests/*", "*/alembic/*"]
[tool.coverage.report]
fail_under = 60
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__",
"if TYPE_CHECKING",
]
|