Skip to content

test: python E721 and flake8 updates - #28194

Merged
fanquake merged 2 commits into
bitcoin:masterfrom
jonatack:2023-07-python-E721-and-flake8-update
Aug 1, 2023
Merged

fanquake merged 2 commits into
bitcoin:masterfrom
jonatack:2023-07-python-E721-and-flake8-update

Conversation

@jonatack

Copy link
Copy Markdown
Member

Update our functional tests per E721 enforced by flake8 6.1.0, and update our CI lint task to use that release. This makes the following linter output on current master with flake8 6.1.0 green.

$ ./test/lint/lint-python.py ; ./test/lint/lint-spelling.py 
test/functional/p2p_invalid_locator.py:35:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
test/functional/test_framework/siphash.py:34:12: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
test/functional/test_framework/siphash.py:64:12: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
src/test/fuzz/descriptor_parse.cpp:88: occurences ==> occurrences
^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/spelling.ignore-words.txt

jonatack added 2 commits July 31, 2023 12:13
and touch up the spelling returned by lint-spelling.py
@DrahtBot

DrahtBot commented Jul 31, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK MarcoFalke

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@jonatack

Copy link
Copy Markdown
Member Author

@jonatack
jonatack marked this pull request as ready for review July 31, 2023 18:53
@maflcko

maflcko commented Aug 1, 2023

Copy link
Copy Markdown
Member

lgtm ACK bee2d57

@DrahtBot DrahtBot changed the title test, script: python E721 and flake8 updates test: python E721 and flake8 updates Aug 1, 2023
@DrahtBot DrahtBot added the Tests label Aug 1, 2023
@fanquake
fanquake merged commit e5a9f2f into bitcoin:master Aug 1, 2023
@jonatack
jonatack deleted the 2023-07-python-E721-and-flake8-update branch August 1, 2023 14:28
@bitcoin bitcoin locked and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants