Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading