-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (59 loc) · 1.64 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (59 loc) · 1.64 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
[project]
name = "jobcopilot"
version = "0.0.1"
description = "JobCopilot — AI 求职副驾(workspace root)"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
[tool.uv.workspace]
members = ["apps/api"]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [".venv", "build", "dist", "apps/api/alembic/versions"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "RUF", "ASYNC", "S", "TID", "PT"]
ignore = ["E501", "S101"]
[tool.ruff.lint.isort]
known-first-party = ["jobcopilot_api"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S", "PT011"]
"apps/api/src/jobcopilot_api/settings.py" = ["S104"] # 0.0.0.0 bind is intentional in containers
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]
exclude = ["build/", "dist/", ".venv/", "apps/api/alembic/versions/"]
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = ["testcontainers.*", "pgvector.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["apps/api/tests"]
markers = [
"integration: tests that spin a real Postgres via testcontainers (need Docker)",
]
[tool.coverage.run]
source = ["apps/api/src/jobcopilot_api"]
branch = true
parallel = true
omit = [
"apps/api/alembic/*",
"apps/api/src/jobcopilot_api/__init__.py",
]
[tool.coverage.report]
fail_under = 70
show_missing = true
skip_covered = false
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@overload",
"if __name__ == .__main__.:",
]