New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black/Python Linting Github Workflow #885
Conversation
Awesome to have lint across the codebase! The only thing I'd also suggest is that we can even implement lint as a pre-commit hook (though that can be done in the future). |
Good idea! |
a4af03c
to
09ecac3
Compare
There are multiple ways to do a pre-commit hook depending on if
|
In |
Of course, it makes so much sense to fix the version! Didn't think of that. 😅 While visdom uses Possibly its better to change to the more all-in-one solution Edit: Just saw that both can be used together as well. I am not sure yet what the pro/cons are of this approach. |
I don't have strong preference. Whatever feels easiest to work with? |
09ecac3
to
89e5c2d
Compare
Since last push:
A change in behavior is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @da-h for yet another improvement to the developer experience around here! Happy to see the inclusion of black
.
Description
Following up on #877, this PR completes the linting-workflow by adding also Python linting using
black
.Additionally, this PR:
Javascript Linter Check
as opposed toPython Linter Check
)black py
CONTRIBUTING.md
fileblack py
results in to ensure a clean state for the current branchHow Has This Been Tested?
black py
, which all seem valid for me.black py
): https://github.com/da-h/visdom/actions/runs/3314943853Screenshots (if appropriate):
A failing workflow will show up an additional CTA for the user:
Types of changes
Checklist:
py/visdom/VERSION
according to Semantic Versioning