diff options
author | Christian Clauss <cclauss@me.com> | 2023-03-10 05:59:28 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-02 16:14:45 +1000 |
commit | 79e57473b20707ca948920fbce473d64dbd8ce25 (patch) | |
tree | 01425c0ea0c9ec929b0dd9d2fb7d87680be18a60 /docs/esp32/tutorial | |
parent | 8f8bd981641e0988b9ed3276c8f2435645269b3f (diff) | |
download | micropython-79e57473b20707ca948920fbce473d64dbd8ce25.tar.gz micropython-79e57473b20707ca948920fbce473d64dbd8ce25.zip |
all: Fix various Python coding inconsistencies found by ruff.
This fixes:
- type-comparison (E721): do not compare types, use isinstance().
- string-dot-format-missing-arguments (F524): .format call is missing
argument(s) for placeholder(s): {message}.
- f-string-missing-placeholders (F541).
- is-literal (F632): Use != to compare constant literals.
The last one is fixed by just comparing for truthfulness of `state`.
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions