-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
57 lines (47 loc) · 1.6 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
[project]
name = "ream"
requires-python = ">=3.12"
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
Telethon = "^1.34.0"
cryptg = "^0.5.0.post0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.4.4" # Linting and formatting
mypy = "^1.10.0" # Type checking
[tool.ruff.lint]
select = ["ALL"] # Enable all linter rules
preview = true # Enable rules that are in beta
ignore = [
# [suspicious-non-cryptographic-random-usage]
# `random` is not used for cryptographic purposes most of the time,
# so using it instead of the `secrets` module is usually fine.
"S311",
# [flake8-copyright]
# I don't use copyright headers in my code, so this ruleset is unneeded.
"CPY",
# [line-too-long]
# When making the line shorter is possible, ruff's formatter
# automatically takes care of that, so warning about long lines is
# unnecessary.
"E501",
# [missing-todo-author], [missing-todo-link]
# I don't use TODO tags for repository issue tracking, so I don't need
# author and issue links on them.
"TD002",
"TD003",
# [complex-structure], [too-many-branches], [too-many-statements], [too-many-return-statements]
# This code heavily uses huge match blocks and if statements, so trying to
# reduce function complexity will actually make the code less readable.
"C901",
"PLR0911",
"PLR0912",
"PLR0915",
]
[tool.mypy]
strict = true # Enforce type annotations
disable_error_code = "name-defined" # Ruff already reports undefined variables
[[tool.mypy.overrides]]
module = "telethon.*"
ignore_missing_imports = true