HomePhabricator

[electrum] fix flake8-comprehensions warnings and enable flake8 for electrum

Description

[electrum] fix flake8-comprehensions warnings and enable flake8 for electrum

Summary:
Fixes the warnings listed here: https://github.com/adamchainz/flake8-comprehensions#rules

Also remove two unused imports in dnssec.py to fix flake8 error introduced in D14094 when I deleted the code using these imports.

Depends on D14106

Test Plan:

arc lint --everything
cd electrum
python -m electrumabc.tests
python -m electrumabc_plugins.fusion.tests

Run electrum-abc, enable cash fusion.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14107

Details

Provenance
PiRKAuthored on Jun 21 2023, 12:40
PiRKPushed on Jun 23 2023, 19:59
Reviewer
Restricted Project
Differential Revision
D14107: [electrum] fix flake8-comprehensions warnings and enable flake8 for electrum
Parents
rABC34f9c38f7908: [lint] add a .isort.cfg file contrib/buildbot
Branches
Unknown
Tags
Unknown