-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
100 lines (90 loc) · 1.77 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
[tool.poetry]
name = "some-bot"
version = "0.1.0"
description = ""
authors = ["First Second <any@mail.com>"]
readme = "README.md"
packages = [{include = "app"}]
[tool.poetry.dependencies]
python = "^3.11"
aiogram = {version = "^3.1.1", allow-prereleases = true}
edgedb = "^2.0.0"
pydantic = "^2.3.0"
sentry-sdk = "^2.10.0"
babel = "^2.15.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.5.3"
black = "^24.4.2"
pre-commit = "^3.7.1"
mypy = "^1.11.0"
[tool.ruff]
line-length = 79
src = ["app"]
select = ["ALL"]
ignore = [
"D203",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D213",
"RUF012"
]
fix = true
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py311"
[tool.ruff.mccabe]
max-complexity = 10
[tool.black]
line-length = 79
[tool.mypy]
plugins = "pydantic.mypy"
python_version = 3.11
show_error_codes = true
show_error_context = true
pretty = true
ignore_missing_imports = false
warn_unused_configs = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
follow_imports_for_stubs = true
namespace_packages = true
show_absolute_path = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"