-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add checks on codestyle in CI #46
Comments
@jameslamb @adamsxs @bburns632 Suggestion: Use Pre-commit hooks to format and check the python code and keep the CI file the same.
If everyone is okay with the proposal, I would be glad to start working on this issue. #Hacktober2019 |
Hi @SharathGa , See comments in #50 and @adamsxs, can you confirm that PR is no longer in progress? In short:
For ease of DIFF review (read: reviewer sanity), please keep PRs small. |
Hi @bburns632 Proposed solution:
What do you think? |
Hi @SharathGa , I like how @gsganden has managed github.com/uptake/autofocus, so I would like his opinion on default python PR code style checks in addition to @jameslamb. |
I personally do not like pre-commit hooks because they force people to have additional software (e.g. I the idea of not doing this all at once in one PR. I would propose the following: • PR 1: set up the checks to run during CI and only have them look for a single style issue (say, lines that are more than 100 characters long) I don't want / have any authority over the ultimate decision made for this repo, that's just my personal opinion on handling this. Thanks for being patient with us and contributing @SharathGa ! |
FWIW, Autofocus checks for conformity to both FWIW, I would make the changes in one fell swoop. |
@jameslamb my pleasure! it feels great to get quick reponse and valuable feedback from the community @bburns632 @Chronocook. @gsganden makes sense , this is also sort of how I am working on multiple issues of numpynet. I have separate branches for each issue and I merge them with my master when the branch into pulled in the main master . @jameslamb @bburns632 |
Add
pycodestyle
to the CI setup for this project to prevent PRs from introducing style issues and to document the preferred style for this project.See this example PR for an example of how to add this type of check to your build. Basically you need to run
pycodestyle
command on the repo and can optionally configure what it checks with atox.ini
file.Docs here: http://pycodestyle.pycqa.org/en/latest/intro.html
The text was updated successfully, but these errors were encountered: