What changed, and why it matters
This commit simply updates the versions of two code-linting tools used in Electrum's automated testing pipeline and adjusts which style/error checks are enabled or ignored. It does not change any wallet, networking, or cryptographic code that end users rely on. There is no indication this introduces or fixes a security vulnerability.
No security action needed. Treat as a routine CI maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is confined to .cirrus.yml, a CI configuration file. It bumps flake8 from 7.2.0 to 7.3.0 and flake8-bugbear from 24.12.12 to 25.10.21. It also adds the new B909 bugbear check to the mandatory linter set and adds B042 to the ignore list. No application source code is modified.
Changed components
.cirrus.yml CI configurationflake8 linting taskInspect captured patch +3 / −3
diff --git a/.cirrus.yml b/.cirrus.yml
index d9c7015..e7c68d6 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -211,7 +211,7 @@ task:
folder: ~/.cache/pip
fingerprint_script: echo Flake8 && echo $ELECTRUM_IMAGE && cat $ELECTRUM_REQUIREMENTS
install_script:
- - pip install "flake8==7.2.0" "flake8-bugbear==24.12.12"
+ - pip install "flake8==7.3.0" "flake8-bugbear==25.10.21"
flake8_script:
- flake8 . --count --select="$ELECTRUM_LINTERS" --ignore="$ELECTRUM_LINTERS_IGNORE" --show-source --statistics --exclude "*_pb2.py,electrum/_vendor/"
env:
@@ -224,8 +224,8 @@ task:
# - https://flake8.pycqa.org/en/latest/user/error-codes.html
# - https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
# - https://github.com/PyCQA/flake8-bugbear/tree/8c0e7eb04217494d48d0ab093bf5b31db0921989#list-of-warnings
- ELECTRUM_LINTERS: E9,E101,E129,E273,E274,E703,E71,E722,F5,F6,F7,F8,W191,W29,B
- ELECTRUM_LINTERS_IGNORE: B007,B009,B010,B019,B036,F541,F841
+ ELECTRUM_LINTERS: E9,E101,E129,E273,E274,E703,E71,E722,F5,F6,F7,F8,W191,W29,B,B909
+ ELECTRUM_LINTERS_IGNORE: B007,B009,B010,B019,B036,B042,F541,F841
- name: "linter: Flake8 Non-Mandatory"
env:
ELECTRUM_LINTERS: E,F,W,C90,B
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.