-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (62 loc) · 1.27 KB
/
pyproject.toml
File metadata and controls
73 lines (62 loc) · 1.27 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
[project]
name = "pydantic-model-example"
version = "0"
description = "Add your description here"
readme = "README.md"
authors = [{ name = "Lev Vereshchagin", email = "mail@vrslev.com" }]
requires-python = ">=3.10"
dependencies = [
"polyfactory>=3",
"pydantic>=2.10",
"pydantic-settings>=2.10",
]
[project.scripts]
pydantic-model-example = "pydantic_model_example:main"
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"auto-typing-final",
"community-of-python-flake8-plugin",
"flake8-pyproject",
"mypy",
"pytest",
"pytest-cov",
"ruff",
]
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
external = ["COP"]
ignore = [
"EM",
"FBT",
"TRY003",
"D1",
"D203",
"D213",
"G004",
"FA",
"COM812",
"ISC001",
]
[tool.ruff.lint.isort]
no-lines-before = ["standard-library", "local-folder"]
known-third-party = []
known-local-folder = []
lines-after-imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["S101", "S311"]
[tool.mypy]
strict = true
[tool.flake8]
select = ["COP"]
exclude = [".venv", ".cache"]
[tool.coverage.report]
exclude_also = ["if typing.TYPE_CHECKING:"]