Skip to content

Add desktop change

6ccec86
Select commit
Loading
Failed to load commit list.
Open

Add UR decoding capability to scanners on desktop & Android #10518

Add desktop change
6ccec86
Select commit
Loading
Failed to load commit list.
Cirrus CI / linter: Flake8 Mandatory failed Mar 12, 2026 in 59s

Task Summary

Instruction flake8 failed in 00:33

Details

✅ 00:19 clone
✅ 00:01 pip
✅ 00:02 install
❌ 00:33 flake8

        ^
./electrum/ur/ur_decoder.py:86:9: E722 do not use bare 'except'
        except:
        ^
./electrum/ur/ur_decoder.py:90:31: E711 comparison to None should be 'if cond is None:'
        if self.expected_type == None:
                              ^
./electrum/ur/ur_decoder.py:101:28: E711 comparison to None should be 'if cond is not None:'
            if self.result != None:
                           ^
./electrum/ur/ur_decoder.py:158:1: W293 blank line contains whitespace
        
^
./electrum/ur/ur_decoder.py:168:28: E711 comparison to None should be 'if cond is not None:'
        return self.result != None
                           ^
./electrum/ur/ur_decoder.py:176:1: W293 blank line contains whitespace
./electrum/ur/ur_decoder.py:176:5: W292 no newline at end of file
./electrum/ur/xoshiro256.py:11:1: B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on.  Prefer excepting specific exceptions  If you're sure what you're doing, be explicit and write `except BaseException:`.
except:
^
./electrum/ur/xoshiro256.py:11:1: E722 do not use bare 'except'
except:
^
./electrum/ur/xoshiro256.py:14:5: B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on.  Prefer excepting specific exceptions  If you're sure what you're doing, be explicit and write `except BaseException:`.
    except:
    ^
./electrum/ur/xoshiro256.py:14:5: E722 do not use bare 'except'
    except:
    ^
./electrum/ur/xoshiro256.py:41:1: W191 indentation contains tabs
	return ((x << k) | (x >> (64 - k))) & MAX_UINT64
^
./electrum/ur/xoshiro256.py:41:1: E101 indentation contains mixed spaces and tabs
	return ((x << k) | (x >> (64 - k))) & MAX_UINT64
^
./electrum/ur/xoshiro256.py:49:16: E711 comparison to None should be 'if cond is not None:'
        if arr != None:
               ^
./electrum/ur/xoshiro256.py:130:9: F824 `global JUMP` is unused: name is never assigned in scope
        global JUMP
        ^
./electrum/ur/xoshiro256.py:151:9: F824 `global LONG_JUMP` is unused: name is never assigned in scope
        global LONG_JUMP
        ^
3     B001 Do not use bare `except:`, it also catches unexpected events like memory errors, interrupts, system exit, and so on.  Prefer excepting specific exceptions  If you're sure what you're doing, be explicit and write `except BaseException:`.
3     B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
1     E101 indentation contains mixed spaces and tabs
14    E711 comparison to None should be 'if cond is None:'
3     E722 do not use bare 'except'
3     F824 `global BYTEWORDS` is unused: name is never assigned in scope
1     W191 indentation contains tabs
6     W291 trailing whitespace
3     W292 no newline at end of file
12    W293 blank line contains whitespace
49