-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (71 loc) · 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (71 loc) · 2.31 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tg-bulk-leave"
version = "0.1.1"
description = "Bulk-leave Telegram groups and channels whose title matches a keyword. Dry run by default."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [{ name = "Davide Zambiasi" }]
keywords = ["telegram", "telethon", "cleanup", "bulk-leave", "leave-groups", "cli"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Communications :: Chat",
"Topic :: Utilities",
]
dependencies = [
"telethon>=1.44,<2",
"python-dotenv>=1.0",
"platformdirs>=4",
]
[project.scripts]
tg-bulk-leave = "tg_bulk_leave.cli:entrypoint"
[project.urls]
Homepage = "https://github.com/soos3d/tg-bulk-leave"
Repository = "https://github.com/soos3d/tg-bulk-leave"
Changelog = "https://github.com/soos3d/tg-bulk-leave/blob/main/CHANGELOG.md"
Issues = "https://github.com/soos3d/tg-bulk-leave/issues"
[dependency-groups]
dev = [
"pytest==9.1.1",
"pytest-asyncio==1.4.0",
"pytest-cov==7.1.0",
"ruff==0.14.5",
]
[tool.hatch.build.targets.sdist]
# Recording assets, not code: neither is importable, and the GIF alone would
# add ~230KB to every download. The README refers to it by absolute URL, so
# nothing inside the distribution needs it present.
exclude = ["/demo", "/docs"]
[tool.ruff]
target-version = "py311"
# Wide enough for the existing deliberate wrapping in cli.py, where several
# lines carry the rationale for a safety decision and read worse split.
line-length = 96
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM"]
[tool.pytest.ini_options]
addopts = "-q --cov=tg_bulk_leave --cov-report=term-missing"
asyncio_default_fixture_loop_scope = "function"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.coverage.run]
source = ["tg_bulk_leave"]
omit = ["*/__main__.py"]
[tool.coverage.report]
fail_under = 80
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]