-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
78 lines (75 loc) · 2.77 KB
/
Copy pathruff.toml
File metadata and controls
78 lines (75 loc) · 2.77 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
line-length = 100
target-version = "py313"
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RSE", # flake8-raise
"TRY", # tryceratops
"PL", # pylint
"PERF", # perflint
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"PLR0913", # too many arguments
"PLR0912", # too many branches
"PLR0915", # too many statements
"PLR2004", # magic value comparison
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"F401", # unused import (intentional for optional dep checks)
"TRY401", # verbose log message (intentional for structured logging)
"PLC0415", # import-outside-top-level (intentional for optional deps)
"TRY300", # try-consider-else (style preference)
"TRY003", # raise-vanilla-args (style preference)
"E402", # module-import-not-at-top-of-file
"E722", # bare-except
"PLW0603", # global-statement
"B904", # raise-without-from-inside-except
"PERF401", # manual-list-comprehension
"E701", # multiple-statements-on-one-line-colon
"RUF001", # ambiguous-unicode-character-string
"TRY301", # raise-within-try
"TRY002", # raise-vanilla-class
"RUF012", # mutable-class-default
"SIM102", # collapsible-if
"N806", # non-lowercase-variable-in-function
"PLW1510", # subprocess-run-without-check
"PLW2901", # redefined-loop-name
"SIM117", # multiple-with-statements
"PLC0206", # dict-index-missing-items
"B007", # unused-loop-control-variable
"PLR0911", # too-many-return-statements
"SIM116", # if-else-block-instead-of-dict-lookup
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"RUF006", # asyncio-dangling-task
"E741", # ambiguous-variable-name
"B017", # assert-raises-exception
"B027", # empty-method-without-abstract-decorator
"B039", # mutable-contextvar-default
"N802", # invalid-function-name
"N817", # camelcase-imported-as-acronym
"PLW1508", # invalid-envvar-default
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
"RUF034", # useless-if-else
"SIM103", # needless-bool
]
[lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["B011", "PLR2004"]
"legacy/*" = ["E501", "F401", "B008"]
"src/core/factory.py" = ["F821"]
"src/core/vader.py" = ["ALL"]
"extensions/ext_mirror_test/cross_modal_auditor.py" = ["N812"]
[lint.isort]
known-first-party = ["src", "gateway", "sme_cli", "extensions"]