#63: Truman's i18n review (release gate runs i18n/CLI tests, Babel check, ruff known-first-party, no translated text stored in the wallet). #64: invalidation pays the current network fee (2-block estimate). #65: Check KeyError on a stale father link. #66: invalidation cascade with list-shaped children. #67: deselected will-executor (delete allowed if never received; broadcast skips it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
1.3 KiB
TOML
28 lines
1.3 KiB
TOML
[tool.ruff]
|
|
line-length = 88
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select =["E", "W", "F", "I", "N", "B", "INT"] # INT: gettext rules (see bal/i18n.py)
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
# Classify the plugin package explicitly: otherwise ruff decides from where it
|
|
# is run / how the project root is detected, and the same import block is
|
|
# "sorted" on one machine and I001 on another.
|
|
known-first-party = ["bal"]
|
|
|
|
[tool.ruff.lint.pep8-naming]
|
|
classmethod-decorators = ["classmethod", "classproperty"] # electrum.util.classproperty uses cls
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"bal/gui/qt/common.py" = ["F401"] # re-exports consumed via explicit imports
|
|
"bal/gui/qt/dialogs.py" = ["N802"] # Qt overrides: closeEvent/hideEvent/getText
|
|
"bal/gui/qt/lists.py" = ["N802"] # Qt overrides: createEditor/setEditorData/setModelData
|
|
"bal/gui/qt/widgets.py" = ["N802", "N815"] # Qt overrides + Qt signal attrs (valueChanged, ...)
|
|
"bal/gui/qt/window.py" = ["N802"] # getMsg
|
|
"bal/core/heirs.py" = ["N818", "N802"] # public exception names + buildTransactions API
|
|
"bal/core/will.py" = ["N818"] # public exception names
|
|
"bal/core/willexecutors.py" = ["N818"] # public exception names
|
|
"tests/*.py" = ["N802", "E402"] # deliberate UPPER_CASE helpers + sys.path-before-import
|