Skip to content

Commit

Permalink
Fix pre-commit step in CI (#929)
Browse files Browse the repository at this point in the history
* fixes

* fixes

* fixes
  • Loading branch information
YuryHrytsuk authored Jan 10, 2025
1 parent 7ce8eff commit 6498f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Define python
run: echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV

- name: Install python version
uses: gabrielfalcao/pyenv-action@v11
with:
default: "${{ env.PYTHON_VERSION }}"
command: pip install -U pip
- name: Set up Python
uses: actions/setup-python@v5 # defaults to .python-version

- name: Show python version
run: python --version

- name: Install dependencies
run: |
pip install pre-commit
pre-commit install
- name: Run pre-commit
run: pre-commit run --all-files
uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: pyupgrade
name: upgrade code
- repo: https://github.com/hadialqattan/pycln
rev: v2.2.2
rev: v2.5.0 # https://github.com/hadialqattan/pycln/issues/249
hooks:
- id: pycln
args: [--all, --expand-stars]
Expand Down

0 comments on commit 6498f00

Please sign in to comment.