forked from paul-nameless/tg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
125 lines (114 loc) · 3.01 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
[project]
name = "tg"
description = "Terminal Telegram client."
authors = [
{ name = "Zubarev Grigoriy", email = "thirtysix@thirtysix.pw" },
{ name = "Paul Nameless", email = "reacsdas@gmail.com" },
]
license = "MIT"
readme = "readme.md"
requires-python = ">= 3.8"
keywords = [
"telegram",
"telegram-client",
"telegram-cli",
"tui",
"tg",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet",
"Topic :: Communications :: Chat",
"Typing :: Typed",
]
dependencies = [
"python-telegram==0.19.0",
]
dynamic = ["version"]
[tool.hatch.version]
path = "src/tg/__init__.py"
[project.urls]
"Source Code" = "https://codeberg.org/thirtysixpw/tg"
"Issue Tracker" = "https://codeberg.org/thirtysixpw/tg/issues"
[project.scripts]
tg = "tg.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
universal = true
dev-dependencies = [
"mypy~=1.11.1",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/tg"]
[tool.ruff]
target-version = "py38"
line-length = 99
exclude = [
".git",
".venv",
".idea",
".tests",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit
"B", # flake8-bugbear
"G", # flake8-logging-format
"C4", # flake8-comprehensions
"UP", # pyupgrade
"PLC", # pylint conventions
"PLE", # pylint errors
"SIM", # flake8-simplify
"RET", # flake8-return
"YTT", # flake8-2020
"DTZ", # flake8-datetimez
"RUF", # ruff-specific rules
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ASYNC", # flake8-async
]
ignore = [
"PTH123", # `open()` should be replaced by `Path.open()`
"RUF003", # Ambiguous unicode character comment
"RUF001", # String contains ambiguous `В` (CYRILLIC CAPITAL LETTER VE)
"DTZ005", # `datetime.datetime.now()` called without a `tz` argument
"DTZ006", # `datetime.datetime.fromtimestamp()` called without a `tz` argument
"RET503", # Missing explicit return at the end of function able to return non-None value
"S602", # subprocess call with shell=True seems safe, but may be changed in the future
]
[tool.ruff.lint.per-file-ignores]
"config.py" = ["E501"]
[tool.mypy]
strict = true
exclude = [
".git",
".venv",
".idea",
".tests",
"build",
"dist",
]