-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
39 lines (37 loc) · 1.06 KB
/
Copy pathpyproject.toml
File metadata and controls
39 lines (37 loc) · 1.06 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
# Tooling configuration for TeleUserBot.
#
# Ruff is intentionally conservative to match the current codebase:
# E4/E7/E9 = pycodestyle errors only (no E501 line-length churn)
# F = pyflakes (unused imports/variables, undefined names)
# I = isort-compatible import sorting
# B = flake8-bugbear (likely bugs)
#
# Upgrade path (not enabled yet, tracked pre-existing counts):
# "W" = pycodestyle warnings
# "UP" = pyupgrade modernization (~500 annotations across main.py/ai_filter.py)
# "BLE" = blind except (~145, mostly deliberate catch-alls)
# "SIM", "C4", "RUF" = style simplifications
[tool.ruff]
target-version = "py311"
line-length = 120
exclude = [".venv"]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "B"]
[tool.ruff.lint.isort]
known-first-party = [
"_terminal",
"ai_filter",
"auth",
"breaking_story",
"config",
"db",
"deploy_hook",
"news_signals",
"news_taxonomy",
"prompts",
"runtime_presenter",
"severity_classifier",
"shared_http",
"utils",
"web_server",
]