-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
128 lines (113 loc) · 2.64 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
127
128
[project]
name = "electrogram"
dynamic = ["version"]
description = "Telegram MTProto API framework in Python, designed for fluid user and bot interactions."
authors = [{ name = "5hojib", email = "yesiamshojib@gmail.com" }]
license = { text = "MIT License" }
dependencies = [
"pysocks",
"aiosqlite",
"pymediainfo",
"pymongo",
"ElectroCrypto",
]
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[tool.hatch.version]
path = "pyrogram/__init__.py"
[tool.hatch.build.hooks.custom]
[project.urls]
homepage = "https://github.com/5hojib/electrogram"
community = "https://t.me/ProjectAeon"
repository = "https://github.com/5hojib/electrogram"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.optional-dependencies]
dev = [
"hatch",
"pytest",
"pytest-asyncio",
"pytest-cov",
"twine"
]
docs = [
"sphinx",
"sphinx-immaterial",
"sphinx_copybutton",
"sphinx-autobuild",
"tornado"
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [
".github/",
".gitignore"
]
[tool.hatch.build.targets.wheel]
ignore-vcs = true
packages = [
"pyrogram"
]
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 85
target-version = "py310"
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.mccabe]
max-complexity = 50
[tool.ruff.lint]
select = [
"E", # pycodestyle: error
"F", # pyflakes
"I", # isort
"W", # pycodestyle: warning
"B", # flake8-bugbear
"G", # flake8-logging-format
"N", # pep8-naming
"C4", # flake8-comprehensions
"UP", # pyupgrade
"FA", # flake8-future-annotations
"PL", # pylint
"PIE", # flake8-pie
"PYI", # flake8-pyi
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # ruff
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"C90", # mccabe
"COM", # flake8-commas
"FURB", # refurb
"PERF", # perflint
"ASYNC", # flake8-async
]
ignore = [
"E501",
"F403",
"N801",
"N806",
"N818",
"PLR09",
"RUF002",
"SIM115",
"PERF203",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLR1702",
"PLW1514",
"PLW2901",
]