-
Notifications
You must be signed in to change notification settings - Fork 125
Add pre-commit to code quality check #2744
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
base: main
Are you sure you want to change the base?
Add pre-commit to code quality check #2744
Conversation
93f38a8
to
860a8e6
Compare
@@ -31,6 +31,10 @@ jobs: | |||
run: tox -e codespell | |||
- name: Run code quality checks | |||
run: tox -e lint | |||
- name: Run pre-commit checks |
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.
Since pre-commit runs codespell you could delete the lines above
- name: Run code quality checks
run: tox -e lint
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.
Yep, done
27e84e7
to
a655cd6
Compare
a06df09
to
ddbc13a
Compare
bf3b06e
to
5558384
Compare
4f0622e
to
4a7d8d0
Compare
I use pre-commit in my other projects. I simply activate my local |
Yes I do the same thing. But unfortunately not everybody does, I see this
problem in other projects as well. This is why there are many files in
this project are not compliant with pre-commit. We do have ruff and
codespell as quality gates for the PRs, but these checks only apply to the
python code and are not run on the code that was already checked in.
Enabling full pre-commit scan as a quality gate should fix this problem.
…On Mon, Jul 14, 2025 at 3:57 AM, Silvano Cirujano Cuesta < ***@***.***> wrote:
*Silvanoc* left a comment (linkml/linkml#2744)
<#2744 (comment)>
I use pre-commit in my other projects. I simply activate my local git
pre-commit hooks and I known that I won't be pushing anything that'll be
rejected by CI. I've shown some support for it in the past, but there was
some opposition at that time. Happy to see it coming back 😄
—
Reply to this email directly, view it on GitHub
<#2744 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAI3ILCE5MX7XGI5R4FHDT3INPHXAVCNFSM6AAAAAB6OIC2UCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANRYGIZTMMZUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
4a7d8d0
to
416b9fb
Compare
416b9fb
to
3bb6f34
Compare
No description provided.