-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (91 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
108 lines (91 loc) · 2.2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[project]
name = "your_project_name"
version = "0.0.0"
authors = []
description = "Your project description"
readme = "README.md"
keywords = ["python"]
requires-python = ">=3.13"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/axioma-ai-labs/"
Documentation = "https://github.com/axioma-ai-labs/"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "your_project_name"
version = "0.0.0"
description = "Your project description"
authors = ["Dzmitry Hramyka <grom.dima.grom@gmail.com>"]
package-mode = false
[tool.poetry.dependencies]
python = "^3.13"
pydantic = "^2.10.5"
pydantic-settings = "^2.7.1"
loguru = "^0.7.3"
httpx = "^0.28.1"
logfire = {extras = ["fastapi", "httpx", "pydantic", "pydantic-ai", "system-metrics"], version = "^3.24.0"}
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.4"
isort = "^5.13.2"
ruff = "^0.9.1"
mypy = "^1.14.1"
pytest-asyncio = "^0.25.2"
pytest-cov = "^6.0.0"
[tool.mypy]
python_version = "3.13"
plugins = ["pydantic.mypy"]
# Treats missing imports as errors.
ignore_missing_imports = true
# Runs type checking on all files, even those without type hints.
check_untyped_defs = true
follow_imports = "silent"
warn_redundant_casts = true
no_implicit_reexport = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests",
]
python_files = ["test_*.py"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = [
"."
]
[tool.coverage.run]
source = ["src"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
[tool.ruff]
exclude = ["tests"]
target-version = "py313"
# Formatter
line-length = 100
[tool.ruff.lint.isort]
lines-after-imports = 2
combine-as-imports = true
[tool.isort]
py_version = 312
profile = "black"
overwrite_in_place = "true"
combine_as_imports = true
lines_after_imports = 2