ci: prek for lint/formatting, remove pre-commit(.ci)#250
ci: prek for lint/formatting, remove pre-commit(.ci)#250consideRatio merged 8 commits intosensmetry:mainfrom
Conversation
This reverts commit 8fbda0c. Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
With this change, we stop using pre-commit that doesn't support rust as a language to run hooks. We also stop using pre-commit.ci for the same reason, and with that we need to run prek in GitHub Action's CI system. I transitioned to run mypy checks using prek as well, and removed such ci logic from the Python github actions workflow. I cleaned up run_chores.sh scripts as well, as we can now rely on prek for this. Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
3aaff0a to
e410f24
Compare
|
@simonas-drauksas-sensmetry we have now stopped using pre-commit.ci, as it doesn't support rust based hooks we do this ourselves instead in GitHub Actions. Could you remove the third-party integration to this repo (or escalate my permissions here). Also, we introduce a Prek CI Gate now. |
Done |
|
Regarding CI, can't figure out what's wrong... |
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
The lockfile at I had removed mypy/ruff as dev deps for the bindings/py locally, leaning on prek to do it, so the uv.lock file was outdated in relation to the pyproject.toml file. |
I thought this was just a warning... |
464f00a to
2240fb7
Compare
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
2240fb7 to
419be1b
Compare
It is made into an error when you specify |
Signed-off-by: Erik Sundell <erik.sundell+2025@sensmetry.com>
77f9d4a to
0de1761
Compare
.github/zizmor.yml
Outdated
| # FIXME: artipacked was disabled on introduction to avoid erroring, try fix | ||
| # issues or motivate why it should remain disabled | ||
| cache-poisoning: | ||
| disable: true | ||
|
|
||
| # FIXME: cache-poisoning was disabled on introduction to avoid erroring, try | ||
| # fix issues or motivate why it should remain disabled | ||
| excessive-permissions: | ||
| disable: true | ||
|
|
||
| # FIXME: excessive-permissions was disabled on introduction to avoid erroring, | ||
| # try fix issues or motivate why it should remain disabled | ||
| secrets-outside-env: |
There was a problem hiding this comment.
The names in these FIXMEs don't quite match up.
|
@andrius-puksta-sensmetry @victor-linroth-sensmetry okay to go with this? I've started working on some zizmor things in a followup PR, with #250 (review) fixed already |
andrius-puksta-sensmetry
left a comment
There was a problem hiding this comment.
Good to go, just split out zizmor stuff into #251.
Signed-off-by: Erik Sundell <erik.sundell@sensmetry.com>
f5af748 to
3e6f25f
Compare
Based on a decision in todays sysand standup, we'll lean on using prek for static checks and formatting, this PR gets it done.