Skip to content

Conversation

@mshafer-NI
Copy link
Collaborator

Flake8 4.0 broke our io capture, so we opted to pin it; however, latest releases of pep8-naming (one of our plugins) require at least flake8 5.0 for compatibility.

This PR bumps flake8 to 5.x and addresses our capture so our tooling still works (including "fix") by using a io.TextIOWrapper backed by a io.BytesIO for the buffer that flake8 wants.

Note: between flake8 3.x and 5.x, it appears that the default sorting of errors for a given line has changed. To stabilize our tests, I opted to add an alphabetic sort of the error lines in such that our acknowledgements will be in a deterministic ordering.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2023

Thank you for contributing! 👋

@mshafer-NI mshafer-NI merged commit 968c61d into ni:main Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants