-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Set up linters on github to check PRs #124
Comments
We discussed this and we would like to use super linter |
Update: I have reviewed some documentation and have a few questions for @fyliu on implementation:
|
So
Actually, it might be better/easier to just use the pre-commit bot to do the checks. It's a better mirror of the checks we do locally before committing and pushing. No surprises waiting at the GitHub PR if the local pre-commit checks all pass. It's free for public repos. I have it set up in my fork and it reads the config file and runs in the PR. There's still some issue with at least one of the checks, so it's running but not fully working for me. The problem one is, which checks Dockerfile, and I know it's available in superlinter. Maybe we can use both to cover everything? |
@fyliu, thanks for the update. Does that mean super-linter is not required here? |
@AzaniaBG Yes. I think we should just use pre-commit both in github and locally since they can both run using the same config file. The only thing left in the pre-commit config that's runnable from github is pytest. That probably needs a separate issue since people have so many strategies to run it on github it probably takes time to figure out which one we should use. |
@fyliu ~ Thanks, we can discuss setting up a new issue (per your last comment) at today's meeting. |
@AzaniaBG hackforla cancelled all the December meetings to let the volunteers recharge. Participation would probably be spotty anyway. Anywya, it's basically this. But it looks like we need to make the project run-able without docker for this type of GHA to work. I have an issue to set it up using poetry which is #178. @ethanstrominger got it to run and he's using another tool called pur. I think it's still better to use poetry at this point. Its functionality includes dependency management and creating the virtual environment for running the project. It also lets us separate dev vs. production dependencies. |
I'm changing the issue to one using pre-commit.ci. I didn't know about it at them time of creating this issues, and my thoughts were to run the same checks as the local pre-commit using something like superlinter. But it's pretty hard to hit all the same checks. Recently, I was reading the Git DX book which mentioned pre-commit.ci and how to use it. It uses the same config file as the local pre-commit setup, so most of it just worked when I thought I was going to try it for fun. It was so easy and the checks are exactly the same as the local ones that it became clear that we should be using it. It's also faster than the competition. |
Overview
In the interest of all devs, we should set up a style checker on the github side. There's several cases of code in main with inconsistent formatting that could have been prevented by running linters before committing or pushing, like what pre-commit provides automatically.
Action Items
Resources/Instructions
The text was updated successfully, but these errors were encountered: