Skip to content

Commit c0a9a45

Browse files
committed
move to prek
1 parent e9fb198 commit c0a9a45

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pre-commit
1+
name: prek
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
pre-commit:
10+
prek:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
@@ -22,5 +22,5 @@ jobs:
2222
run: pip install ".[dev]"
2323
- name: Install pyrefly
2424
run: pip install pyrefly==0.44.1
25-
- name: Run pre-commit
26-
uses: pre-commit/action@v3.0.1
25+
- name: Run prek
26+
run: prek run --all-files

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
1+
default_language_version:
2+
python: python3.10
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
55
rev: v6.0.0
@@ -21,7 +21,6 @@ repos:
2121
# Run the linter.
2222
- id: ruff
2323
args: [ --fix ]
24-
# Run the formatter.
2524
- id: ruff-format
2625

2726
- repo: https://github.com/asottile/pyupgrade

pyproject.toml

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

3131
[project.optional-dependencies]
3232
dev = [
33-
"pre-commit==3.6.0",
33+
"prek>=0.2.27",
3434
"bumpver",
3535
"pip-tools",
3636
"pytest",

0 commit comments

Comments
 (0)