This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Demonstrating why we need nmccrea#3 or similar.
@cclauss thanks so much for this. This project has been in suspended animation for some time but I will be getting things moving again in short order. |
…into cclauss/sobot-rimulator/patch-1
nmccrea
previously approved these changes
Sep 11, 2020
nmccrea
previously approved these changes
Sep 11, 2020
nmccrea
approved these changes
Sep 11, 2020
@cclauss Thank you very much for this. I have now linted this entire project with black, codespell, and flake8. I made some modifications to the Github action you created here but the spirit remains the same. Among other things I have made the action fail if any of these three tools find problems. At the moment, these checks still do not pass. This is because there are a handful of remaining problems found by black and flake8. They fall into two categories:
My hope is that we can get these remaining problems cleaned up before long and then begin enforcing this action for all PRs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Demonstrating why we need #3 or similar. Five files with Python syntax errors.
Output: https://github.com/cclauss/sobot-rimulator/actions
flake8 testing of https://github.com/nmccrea/sobot-rimulator on Python 3.8.3
$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
https://flake8.pycqa.org/en/latest/user/error-codes.html
On the flake8 test selection, this PR does not focus on "style violations" (the majority of flake8 error codes that psf/black can autocorrect). Instead these tests are focus on runtime safety and correctness: