-
Notifications
You must be signed in to change notification settings - Fork 29
/
pyproject.toml
95 lines (87 loc) · 2.17 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
[tool.poetry]
name = "datingbot"
version = "0.1.0"
description = "A Telegram Bot with open source code, which implemented django and a dating system"
authors = ["David Dzhalaev <[email protected]>"]
license = "Attribution-NonCommercial 3.0 Unported"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
aiogram = "2.25.1"
environs = "10.2.0"
asyncpg = "0.29.0"
Django = "4.2"
psycopg2-binary = "2.9.9"
jsonfield = ">=3.1.0,<3.2.0"
asgiref = "3.7.2"
uuid = ">=1.30,<2.0"
pip = "23.3.2"
setuptools = "69.0.3"
django-jazzmin = ">=2.6.0,<2.7.0"
better-profanity = ">=0.7.0,<0.8.0"
pytest = "7.4.4"
aiohttp = "<3.9.0"
async-lru = "2.0.4"
pytest-asyncio = "0.23.3"
apscheduler = "3.10.4"
nudenet = "3.0.8"
yarl = "1.9.4"
aiofiles = "23.2.1"
pre-commit = "3.6.0"
testresources = "^2.0.1"
pydantic = "1.10.13"
redis = "5.0.1"
betterlogging = ">=0.2.1,<0.3.0"
flake8 = "7.0.0"
black = "23.12.1"
mypy = "^1.8.0"
isort = "^5.13.2"
deptry = "^0.12.0"
ruff = "^0.1.14"
pip-audit = "^2.7.0"
[tool.black]
line-length = 99
exclude = [
"venv",
"django_project/telegrambot/common/migrations",
"django_project/telegrambot/usersmanage/migrations",
".git"
]
target-version = ['py311']
[tool.mypy]
python_version = "3.11"
warn_unused_ignores = true
ignore_missing_imports = true
strict_optional = false
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
disallow_untyped_calls = true
warn_redundant_casts = true
warn_unused_configs = true
strict_equality = true
[tool.isort]
profile = "black"
force_grid_wrap = 1
multi_line_output = 3
honor_noqa = true
float_to_top = true
combine_as_imports = true
force_sort_within_sections = true
include_trailing_comma = true
line_length = 99
use_parentheses = true
known_third_party = ['django', 'rest_framework_extensions', 'aiogram']
known_first_party = ["common", "usersmanage",]
skip = ["__init__.py", "app.py"]
[tool.ruff]
line-length = 99
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/{tests,docs,tools,migrations}/*" = ["F401"]
[tool.deptry]
ignore = ["DEP002"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"