Skip to content

Commit 85b66e5

Browse files
pre-commit → prek
1 parent 188a729 commit 85b66e5

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
2-
name: pre-commit
2+
name: prek
33

44
on:
55
pull_request:
66
push:
77
branches: [master]
88

99
jobs:
10-
pre-commit:
10+
prek:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/setup-python@v6
1413
- uses: actions/checkout@v6
15-
- uses: pre-commit/action@v3.0.1
14+
- uses: j178/prek-action@v1

.github/workflows/update_precommit_hooks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
with:
3939
python-version: '3.12'
4040
allow-prereleases: false
41-
- name: Install pre-commit
42-
run: pip install pre-commit
41+
- name: Install prek
42+
run: pip install prek
4343
- name: Update pre-commit hooks
44-
run: pre-commit autoupdate
44+
run: prek auto-update
4545
- name: Create Pull Request
4646
uses: peter-evans/create-pull-request@v8
4747
with:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ cd neurodocker
5555
python -m pip install --no-cache-dir --editable .[all]
5656
```
5757

58-
Before committing changes, initialize `pre-commit` with `pre-commit install`. This will format code with each commit to keep the style consistent. _Neurodocker_ uses `ruff` for formatting.
58+
Before committing changes, initialize `prek` with `prek install`, or `pre-commit` with `pre-commit install`. This will format code with each commit to keep the style consistent. _Neurodocker_ uses `ruff` for formatting.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dev = [
4444
"codecov",
4545
"coverage[toml]",
4646
"mypy",
47-
"pre-commit",
47+
"prek",
4848
"pytest >= 6.0",
4949
"pytest-cov >= 2.0.0",
5050
"pytest-reportlog >= 0.1.2",

0 commit comments

Comments
 (0)