Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (52 loc) · 1.41 KB
/
Copy pathpyproject.toml
File metadata and controls
64 lines (52 loc) · 1.41 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
[dependency-groups]
dev = [
"mypy>=1.17.1",
"poethepoet>=0.37.0",
"pre-commit>=4.3.0",
"psycopg2>=2.9.11",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-env>=1.1.5",
]
[tool.uv.workspace]
members = [
"adk-chatkit",
"examples/backend"
]
[tool.uv.sources]
adk-chatkit = { workspace = true}
[tool.ruff]
line-length = 120
fix = true
target-version = "py311"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "W", "B", "Q", "I", "ASYNC", "T20"]
ignore = ["F401", "E501", "T201"]
[tool.ruff.lint.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"unittest".msg = "Use `pytest` instead."
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.params.Depends", "fastapi.Query", "fastapi.params.Query"]
[tool.mypy]
strict = true
python_version = "3.11"
ignore_missing_imports = true
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = false
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_unimported = false
[tool.pyright]
include = ["src", "tests", "samples"]
# typeCheckingMode = "strict"
reportUnnecessaryIsInstance = false
reportMissingTypeStubs = false
[tool.poe]
include = "poe.toml"