mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-27 22:34:18 +02:00
This refactor makes the ruff.toml easier to read, because it lists the ignored checks instead of having to enumerate all checks to select in a large collection of rules.
19 lines
528 B
TOML
19 lines
528 B
TOML
[lint]
|
|
select = [
|
|
"B006", # mutable-argument-default
|
|
"B008", # function-call-in-default-argument
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes errors
|
|
"PLE", # Pylint errors
|
|
"RUF001", # ambiguous-unicode-character-string
|
|
"RUF002", # ambiguous-unicode-character-docstring
|
|
"RUF003", # ambiguous-unicode-character-comment
|
|
"W", # pycodestyle warnings
|
|
]
|
|
ignore = [
|
|
"E501", # line too long
|
|
"E712", # true-false comparison
|
|
"E731", # lambda assignment
|
|
"E741", # ambiguous-variable-name
|
|
]
|