-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (93 loc) · 1.83 KB
/
pyproject.toml
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
[tool.poetry]
name = "ymdantic"
version = "0.1.8"
description = "Фреймворк предоставляющий доступ к API Яндекс Музыки (с Pydantic валидацией)"
authors = ["KatantDev <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.8"
aiohttp = "^3.9.0"
pydantic = "^2.4"
dataclass-rest = "^0.4"
certifi = "^2023.7.22"
strenum = "^0.4.15"
[tool.poetry.group.dev.dependencies]
black = "^23"
mypy = "^1.8"
ruff = "^0.1"
pre-commit = "^3"
[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
exclude = '''
(
\.eggs
| \.git
| build
| dist
| venv
)
'''
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 88
select = [
"C4",
"E",
"F",
"T10",
"T20",
"Q",
"RET",
]
src = ["ymdantic"]
exclude = [
".git",
"build",
"dist",
"venv",
".venv",
"scripts",
"*.egg-info",
]
target-version = "py38"
[tool.ruff.isort]
known-first-party = [
"ymdantic",
]
[tool.ruff.per-file-ignores]
"examples/*" = ["T201"]
[tool.mypy]
plugins = [
"pydantic.mypy"
]
follow_imports = "silent"
allow_subclassing_any = true
allow_untyped_decorators = true
show_error_codes = true
show_error_context = true
pretty = true
warn_unused_configs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = false
follow_imports_for_stubs = true
namespace_packages = true
show_absolute_path = true
[[tool.mypy.overrides]]
module = [
'dataclass_rest.*'
]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"