-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (41 loc) · 1.41 KB
/
pyproject.toml
File metadata and controls
51 lines (41 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
[project]
name = "playground"
version = "0.1.0"
description = ""
authors = [
{name = "Your Name",email = "you@example.com"}
]
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"flask (>=3.1.2,<4.0.0)"
]
[tool.poetry]
packages = [{include = "playground", from = "src"}]
[tool.pytest.ini_options]
addopts = "-s" # or: "--capture=tee-sys"
[tool.mypy]
disallow_untyped_defs = true # all functions/methods must have type hints
disallow_incomplete_defs = true # parameters must all be typed
check_untyped_defs = true # still check inside untyped functions (if any)
disallow_untyped_calls = true # cannot call untyped functions
warn_return_any = true # warn if returning Any
warn_unused_ignores = true # fail if unnecessary "# type: ignore"
no_implicit_optional = true # require explicit Optional[...]
strict_equality = true # check equality comparisons strictly
warn_unused_configs = true
warn_redundant_casts = true
# Per-module overrides (example)
# [[tool.mypy.overrides]]
# module = ["tests.*"]
# disallow_untyped_defs = false # allow untyped tests
[tool.poetry.scripts]
playground = "playground.main:main"
[tool.poetry.group.dev.dependencies]
pytest = "^8.4.2"
coverage = "^7.10.7"
mypy = "^1.18.2"
ruff = "^0.13.1"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"