-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
94 lines (76 loc) · 2.03 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
[tool.poetry]
name = "tgbot"
version = "0.1.0"
description = "Telegram Bot Template"
authors = ["Sergio Gómez Bachiller <[email protected]>"]
license = "EUPL-1.2"
readme = "README.md"
packages = [{include = "tgbot", from = "src"}]
[tool.poetry.scripts]
cli = "tgbot.infrastructure.cli:app"
server = "tgbot.infrastructure.api:main"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = {extras = ["all"], version = "^0.109.0"}
pytelegrambotapi = "^4.14.1"
typer = {extras = ["all"], version = "^0.9.0"}
aiohttp = "^3.9.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
ruff = "^0.2.0"
pre-commit = "^3.6.0"
black = "^24.1.1"
commitizen = "^3.13.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.mypy]
python_version = "3.10"
strict = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = "telebot.*"
ignore_missing_imports = true
disallow_untyped_calls = true
strict = false
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["tests"]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C", # flake8-comprehensions
"E", # pycodestyle errors
"W", # pycodestyle warnings
"ERA", # eradicate
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"PL", # pylint
"RUF100", # Ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
]
ignore = [
"A003", # builtin-attribute-shadowing
"ARG001", # unused function argument
"ARG002", # unused method argument
"B008", # do not perform function calls in argument defaults
"E501", # line too long, handled by black
"PLR0913", # too many arguments,
]
[tool.ruff.isort]
known-first-party = ["tgbot", "tests"]