-
Notifications
You must be signed in to change notification settings - Fork 13
Enable all pre-commit hooks in ci #832
Comments
Thank you for reporting this improvement!
I fully agree that this is the goal here.
👍 |
@4ydan I think lots of progress happened here? Can you check in the top post what is already done? |
Updated, sadly the other stuff is not that trivial. |
As long as there isn't something that is not checked in the CI pipeline at all (but is checked in pre-commit), I don't worry. |
What do we think about the idea to have a pre-commit file in each subdirectory? This would make the pre-commit file also more readable and enable us to easier integrate it into CI, not needing to build a docker image with the full stack. |
This sounds like a great idea. So the CI would execute the individual checks in each directory (with different Dockerfiles) but for devs it is basically unchanged? |
I hope so, I have to test if it works like I would imagine it to work.
But else it should hopefully still execute all necessary checks. Only change for devs is to write new checks in the according .pre-commit-config.yaml |
Keeping Makefiles and pre-commit separate sounds better. pre-commit already provides a CLI interface, so I don't see a big benefit in having the targets available in Makefiles, additionally. Or do I miss something important here? |
Yea, I dont like the Makefile idea too much too. |
I just realized this would only work if the subfolders are git submodules or git repos. So we cant do this, as multiple installations of pre-commits are not possible, they overwrite each other. |
Let us rest this issue again a bit. Let us pick up again when something changes in pre-commit. |
Currently I added (unticked) to top post:
|
Task
Instead of invoking each hook individually we could just run
pre-commit run -a
.We need to:
fix-npm-groovy-lint
cargo-fmt
stage to not perform this check twicefrontend test
stage to not perform this check twiceeslint
prettier
andfmt
hookThis would make the pipeline a bit more transparent, as the stage
frontend test
does alsonpm format:check
,npm linting
andnpm test
.And auto include new checks to the pipeline without needing to manually edit the Jenkinsfile.
The text was updated successfully, but these errors were encountered: