-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (55 loc) · 1.26 KB
/
Copy pathpyproject.toml
File metadata and controls
68 lines (55 loc) · 1.26 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
[dependency-groups]
dev = [
"debugpy>=1.8",
"mypy>=2.1.0",
"poethepoet>=0.46.0",
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-env>=1.6.0",
]
[tool.uv.workspace]
members = [
"backend",
]
[tool.uv.sources]
backend = { workspace = true }
[tool.ruff]
line-length = 88
fix = true
target-version = "py314"
[tool.ruff.lint]
ignore = ["D100", "D101", "D102", "D103", "D104", "D106", "D107"]
extend-select = ["I"]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = [
"pydantic.BaseModel",
"nova_schema.base.BaseModel",
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["S101", "PLR2004"]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
strict = true
python_version = "3.14"
ignore_missing_imports = true
plugins = [
"pydantic.mypy"
]
# 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.poe]
include = [
"poe.toml"
]