From 5fd05e4e324f713688a9091c236d34789c58d327 Mon Sep 17 00:00:00 2001 From: Rob van der Leek <5324924+robvanderleek@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:04:12 +0200 Subject: [PATCH] Use pipx --- .github/workflows/code-style.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index a83aada..cc29614 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -10,19 +10,23 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout sources' - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - name: 'Lint code with Ruff' run: | - pip install ruff + pipx install ruff ruff check --fix . + - name: 'Type cheking with MyPy' run: | - pip install mypy + pipx install mypy mypy --ignore-missing-imports codelimit/ + - name: 'Format code with black' run: | - pip install black + pipx install black black . + - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: 'Code style fixes'