-
Notifications
You must be signed in to change notification settings - Fork 63
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
Difficult for users to locally run linters used in CI #114
Comments
I'm working on integrating Also, we need to continue using the standalone |
SuperLinter has a ton of linters (see
It's not clear to me which tools these options might use behind the scenes with the exception of ones where the tools are in the name. The most common one for us is pylint. Moving away from pylint will require us to replace the above list with any linters we want to maintain coverage from and also to fix pylint issues so that we can run pylint on the whole codebase in CI via pre-commit. |
I've found that there are quite a few latent pylint issues on master. I will need to fix these before replacing the tooling entrypoint with |
After #122 , the only remaining hooks to move are Also, SuperLinter provides some hooks that we simply can't use (easily) in pre-commit, and so I am skipping them, with justifications.
Natural language validation: there is no existing pre-commit hook for this that I could find. I don't think this hook is terribly important. The most important part about natural language is that its meaning is generally understandable, and we enforce this in code review. |
The last work toward this was merged today. DGP linting is done entirely through |
Description
DGP features various linters: pylint, YAPF, SuperLinter, and even a commit linter (CI-only?). To run all linters, users have to do so manually or attempt a commit locally to trigger the git hooks.
Improvement
While this introduces yet another tool, let's use something like
pre-commit
to manage our various linting tools.pre-commit
provides a common entrypoint to containerized linting, making it easy to run the same checks that we use in CI locally so that people can fix linting issues before going to CI. We could configure and use (most of?) the same linters we currently use, and we'd remove.githooks/
entirely.The text was updated successfully, but these errors were encountered: