-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
137 lines (121 loc) · 2.92 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
129
130
131
132
133
134
135
136
137
[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==4.10.1",
"TgCrypto-pyrofork",
]
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.rye]
managed = true
dev-dependencies = [
"ruff",
"pytest",
"pytest-asyncio",
"pytest-cov",
"twine",
"pre-commit",
]
[tool.rye.scripts]
clean = { chain = ["clean:api"] }
"clean:api" = { cmd = "rm -rf pyrogram/errors/exceptions pyrogram/raw/all.py pyrogram/raw/base pyrogram/raw/functions pyrogram/raw/types" }
api = { chain = ["api:raw", "api:errors"] }
"api:raw" = { call = "compiler.api.compiler:start" }
"api:errors" = { call = "compiler.errors.compiler:start" }
[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]
select = [
"FURB", # refurb
"I", # isort
"E", # pycodestyle: error
"W", # pycodestyle: warning
"UP", # pyupgrade
"F", # pyflakes
"SIM", # flake8-simplify
"RET", # flake8-return
"C4", # flake8-comprehensions
"PTH", # flake8-use-pathlib
"PERF", # perflint
"N", # pep8-naming
"RUF", # ruff
"G", # flake8-logging-format
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"FA", # flake8-future-annotations
"PL", # pylint
"ARG", # flake8-unused-arguments
]
ignore = [
"E501",
"F403",
"N801",
"N806",
"N818",
"PLR09",
"RUF002",
"SIM115",
"PERF203",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PLR1702",
"PLW1514",
"PLW2901",
]