-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
96 lines (86 loc) · 2.02 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
[tool.poetry]
name = "video-downloader-bot"
version = "0.2.1"
description = "Telegram bot for downloading videos from social networks"
authors = ["Jag_k <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
python-telegram-bot = "^21.1.1"
aiohttp = "^3.8.3"
pytube = "^15.0.0"
python-dotenv = "^1.0.0"
pytz = "^2024.1"
aiofiles = "^23.1.0"
pydantic = "^1.10.15"
motor = "^3.1.2"
mongopersistence = "^0.3.1"
contextvars = "^2.4"
[tool.poetry.group.dev.dependencies]
babel = "*"
black = "*"
pre-commit = "*"
ruff = "*"
#mypy = "*"
[tool.poetry.group.types.dependencies]
types-pytz = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py312"
exclude = ["*locales*"]
[tool.ruff.lint]
select = [
"E", # pyflakes
"F", # pycodestyle errors
"W", # pycodestyle warnings
"UP", # pyupgrade
"I", # isort
"C4", # flake8-comprehensions
# pytest
"PT018", # Assertion should be broken down into multiple parts
"PT022", # No teardown in fixture {name}, use return instead of yield
]
ignore = ["E501"]
ignore-init-module-imports = true
[tool.ruff.lint.isort]
known-first-party = [
"app",
"cli",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F405", "F811"]
"__main__.py" = ["E402", "F401", "F403", "F405", "F811"]
#[tool.mypy]
#python_version = "3.12"
#plugins = ["pydantic.mypy"]
#ignore_missing_imports = true
#scripts_are_modules = true
#allow_redefinition = true
##disallow_untyped_defs = true
#no_implicit_optional = true
##warn_no_return = false
#show_error_context = true
#show_column_numbers = true
#show_error_codes = true
##color_output = false
#pretty = true
#exclude = [
# '^setup\.py$',
# '^tmp\.py$',
# '^venv/',
# '^test+\.py$',
# '^conftest\.py$',
# '^tests/',
# '^prompt\.py$',
# '^__init__\.py$',
#]
#disable_error_code = [
# "call-arg",
# "truthy-function",
# "override",
# "no-redef",
# "annotation-unchecked",
#]