-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
64 lines (61 loc) · 1.73 KB
/
Copy pathruff.toml
File metadata and controls
64 lines (61 loc) · 1.73 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
[lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"B", # flake8-bugbear
"SIM", # flake8-simplify
"T201", # print found — prevent new print() in non-CLI code
]
ignore = [
"E501", # line too long
"SIM108", # use ternary operator instead of if-else
]
exclude = [
".git",
".teaagent",
"__pycache__",
".pytest_cache",
".venv",
"build",
"dist",
]
[lint.per-file-ignores]
# Allowed print() users — CLI tools, servers, examples, scripts, benchmarks
"benchmarks/**" = ["T201"]
"docs/guides/examples/**" = ["T201"]
"examples/**" = ["T201"]
"scripts/**" = ["T201"]
"tests/**" = ["T201"]
# Source modules that use print() for CLI output, server startup, or stderr warnings
"teaagent/acp_adapter.py" = ["T201"]
"teaagent/approval/manager.py" = ["T201"]
"teaagent/audit.py" = ["T201"]
"teaagent/cli/**" = ["T201"]
"teaagent/__init__.py" = ["F401"]
"teaagent/collectors/repo_watch.py" = ["T201"]
"teaagent/control_plane_api.py" = ["T201"]
"teaagent/env_manager.py" = ["T201"]
"teaagent/ergonomics/background_run.py" = ["T201"]
"teaagent/graphqlite_store.py" = ["T201"]
"teaagent/policy.py" = ["T201"]
"teaagent/runner/_streaming.py" = ["T201"]
"teaagent/signature_relay.py" = ["T201"]
"teaagent/streaming/handlers.py" = ["T201"]
"teaagent/tui/**" = ["T201"]
"teaagent/ultrawork.py" = ["T201"]
"teaagent/validation/validators.py" = ["T201"]
"teaagent/vote_relay.py" = ["T201"]
[lint.isort]
known-first-party = [
"teaagent.approval_backend",
"teaagent.approval_manager",
"teaagent.approval_selectors",
"teaagent.approval_ui",
]
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"