forked from userbotindo/Anjani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (112 loc) · 2.84 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[tool.poetry]
name = "anjani"
version = "2.11.1"
description = "Telegram group management bot"
license = "GPL-3.0-or-later"
authors = [
"Gaung Ramadhan <[email protected]>",
"Adek Maulana <[email protected]>"
]
readme = "README.md"
homepage = "https://userbotindo.com/anjani"
repository = "https://github.com/userbotindo/anjani"
documentation = "https://userbotindo.com/anjani/docs/home"
keywords = ["chatbot", "bot", "python", "telegram-bot", "pyrogram"]
classifiers = [
"Environment :: Console",
"Framework :: AsyncIO",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Communications",
"Topic :: Communications :: Chat",
]
[tool.poetry.scripts]
anjani = "anjani.main:start"
[tool.poetry.dependencies]
python = "~=3.9"
aiohttp = "^3.8.4"
aiopath = [
{version = "^0.5.12", python = "<3.10"},
{version = "^0.6.11", python = ">=3.10"},
]
aiorun = "^2022.11.1"
certifi = {version = "^2022.12.7", platform = "windows"}
colorlog = "^6.7.0"
frozenlist = "^1.3.3"
meval = "^2.5"
multidict = "^6.0.4"
pymongo = "^4.3.3"
Pyrogram = "^2.0.99"
python-dotenv = ">=0.21.1,<1.1.0"
PyYAML = "^6.0"
TgCrypto = "^1.2.5"
typing-extensions = "^4.5.0"
uvloop = {version = "^0.17.0", optional = true, platform = "linux"}
yarl = "^1.8.2"
aiocache = "^0.12.0"
[tool.poetry.extras]
all = ["uvloop"]
uvloop = ["uvloop"]
[tool.poetry.group.dev.dependencies]
black = ">=22.12,<24.0"
isort = "^5.12.0"
pre-commit = ">=2.21,<4.0"
pylint = "^2.16.2"
flake8 = ">=5.0.4,<7.0.0"
pytest = "^7.2.1"
pytest-asyncio = ">=0.20.2,<0.22.0"
#
# Black config
#
[tool.black]
line-length = 100
target-version = ["py38"]
#
# Isort Config
#
[tool.isort]
profile = "black"
known_third_party = [
"aiohttp",
"aiopath",
"aiorun",
"colorlog",
"dotenv",
"pymongo",
"pyrogram",
"scikit-learn",
"yaml"
]
#
# Pylint Config
#
[tool.pylint]
ignore = "anjani/util/db"
[tool.pylint.messages_control]
disable = [
"attribute-defined-outside-init",
"too-few-public-methods",
"missing-class-docstring",
"logging-fstring-interpolation",
"missing-function-docstring"
]
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.logging]
logging-format-style = "new"
[tool.pylint.format]
max-line-length = 100
[tool.pylint.design]
max-args = 15
# Semantic Release Config
[tool.semantic_release]
version_variable = "anjani/__init__.py:__version__"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"