Skip to content

Commit f89b7f8

Browse files
authored
chore: Switch from pre-commit to prek (#137)
### Summary [Prek](https://github.com/j178/prek) is a drop-in replacement for pre-commit, written in Rust. It's standalone and faster than pre-commit. It is still in alpha but big packages such as [Apache Airflow](apache/airflow#44995) are using it. Let's switch and see how we go. Fixes #133
1 parent 78caa46 commit f89b7f8

3 files changed

Lines changed: 74 additions & 127 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pre-commit
1+
name: Static checks
22

33
on:
44
push:
@@ -8,9 +8,14 @@ on:
88
types: [opened, synchronize, reopened]
99

1010
jobs:
11-
pre-commit:
11+
ci:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v3
16-
- uses: pre-commit/action@v3.0.1
16+
- name: "Install prek"
17+
run: >
18+
python -m pip install prek
19+
- name: "Run prek"
20+
run: >
21+
prek --all-files --verbose

elt-common/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies = [
1919

2020
[dependency-groups]
2121
dev = [
22-
"pre-commit>=4.2.0",
22+
"prek>=0.1.6",
2323
"pydantic-settings~=2.10.1",
2424
"pytest~=8.3.5",
2525
"pytest-httpx~=0.35.0",

elt-common/uv.lock

Lines changed: 65 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)