Skip to content

Commit 6498f00

Browse files
authored
Fix pre-commit step in CI (#929)
* fixes * fixes * fixes
1 parent 7ce8eff commit 6498f00

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,13 @@ jobs:
88

99
steps:
1010
- name: Checkout repository
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

13-
- name: Define python
14-
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV
15-
16-
- name: Install python version
17-
uses: gabrielfalcao/pyenv-action@v11
18-
with:
19-
default: "${{ env.PYTHON_VERSION }}"
20-
command: pip install -U pip
13+
- name: Set up Python
14+
uses: actions/setup-python@v5 # defaults to .python-version
2115

2216
- name: Show python version
2317
run: python --version
2418

25-
- name: Install dependencies
26-
run: |
27-
pip install pre-commit
28-
pre-commit install
29-
3019
- name: Run pre-commit
31-
run: pre-commit run --all-files
20+
uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- id: pyupgrade
4040
name: upgrade code
4141
- repo: https://github.com/hadialqattan/pycln
42-
rev: v2.2.2
42+
rev: v2.5.0 # https://github.com/hadialqattan/pycln/issues/249
4343
hooks:
4444
- id: pycln
4545
args: [--all, --expand-stars]

0 commit comments

Comments
 (0)