-
Notifications
You must be signed in to change notification settings - Fork 20
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 CI by GitHub Actions #30 #38
Conversation
Codecov Report
@@ Coverage Diff @@
## master #38 +/- ##
=======================================
Coverage 94.76% 94.76%
=======================================
Files 2 2
Lines 420 420
=======================================
Hits 398 398
Misses 22 22 |
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 for taking care of this @tkoyama010 ! Now I have a better idea how black
can be integrated :)
Maybe a stupid question but how do we know if it works before merging into master
though? 😅
@GuillaumeFavelier That is a good question. I don't know it neither 🤔 I plan to do some research 🔍 |
My guess is that it is because this branch is in my fork repository. In other words, you could create a test branch in pyvistaqt and check it there. If you could make a branch, I will reconfigure this PR to merge into it. |
This branch is passed in my fork repository 👍 |
Could you explain what happened? I can see that the github action passed on your Does it mean that there will be a commit "reformat by black" on each PR from now on? Sorry for the noise, I'm just not used to |
@GuillaumeFavelier Sorry, my explanation was not enough. This CI is just to check if the PR source code follows black. I pushed the new commit "reformat by black" by myself to fix the CI error 🙇♂️ |
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.
Many thanks for clarifying 👍 I get it now :)
You have my +1 @tkoyama010, what about the other @pyvista/developers ?
Otherwise looks fine to me |
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.
set enable all check option ✔️
Please wait while CI pass in tkoyama010#1 . |
If we use all enable option we have to solve this CI error. |
We can still make |
OK. Let's make pylint PR next time. Could you merge this PR first? |
Sure, I would just like to wait a little for @akaszynski or @banesullivan opinion before merging if you don't mind. |
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.
LGTM! I'm a fan of this
I'd like to see more things used like pylint, isort, and flake8, but we can address those in follow up PRs
@tkoyama010, can you add a makefile
(or tox
) to do this testing locally?
I'm also an favor of this. We all have a coding style and it would be great to have a truly uniform one across the project. I'm going to miss the single quotes though... |
Would also like a makefile that runs black. @tkoyama010, think you could add that? |
Same.
Tox is also another way of doing this, but @tkoyama010, do whatever is most simple |
As I'm working with C more on my "real job", it's a bit annoying to switch between the two, so I'll agree that there's value with that. Tox is indeed another option as well. I like how it installs the testing env, etc. |
+1 I'll add this. |
Does anyone know what the CI error means? |
The CI error is an HTTP error, so it seems to be resolved by retrying. |
It is ready for merge 👍 |
@banesullivan, I think this one needs your approval. I'm happy with this. |
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.
LGTM! Thanks for moving us forward on this, @tkoyama010!
@GuillaumeFavelier @larsoner @banesullivan @akaszynski Thank you. Now that we have reached an agreement, could you please merge it? |
🆕 black CI by GitHub Actions for issue #30
In this PR. We need to run GitHub Actions.