-
-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathruff.toml
More file actions
77 lines (70 loc) · 1.73 KB
/
Copy pathruff.toml
File metadata and controls
77 lines (70 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
65
66
67
68
69
70
71
72
73
74
75
76
77
exclude = [
".codex",
".symai",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"scripts",
"tests"
]
line-length = 100
indent-width = 4
target-version = "py310"
[lint]
# Rules URL: https://docs.astral.sh/ruff/rules
select = [
"F","E4","E7","E9",
"I","TID252","UP","B","SIM","C4","A","ARG","ISC","RET","RSE",
"G","LOG","TC","PTH","EM","C90",
"PLE","PLC","PLW",
"RUF","T10","T20"
]
ignore = [
"B028", # no explicit stacklevel; enable if you rely on warnings for users
"PLW0603", # global statement discouraged; often noisy in legacy code
"A002", # argument-shadowing-builtin
"C901", # better to handle this manually case by case
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.per-file-ignores]
# Intentional user-facing stdout output (config inspector, contract perf report,
# Conversation auto_print, solver CLI result, engine time_clock/verbose toggles)
"symai/__init__.py" = ["T201"]
"symai/strategy.py" = ["T201"]
"symai/backend/base.py" = ["T201"]
"symai/extended/conversation.py" = ["T201"]
"symai/extended/solver.py" = ["T201"]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"