diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 05d5389..0453b46 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -47,16 +47,21 @@ jobs: - name: Install dependencies run: | - python3 -m pip install --upgrade pip wheel pylint mypy ruff + python3 -m pip install --upgrade pip wheel mypy python3 -m pip install -r requirements.txt - name: Run Ruff if: always() - run: ruff check --output-format=github --exit-non-zero-on-fix . + uses: astral-sh/ruff-action@v1 + with: + version: 0.8.0 - name: Run Ruff Format if: always() - run: ruff format --diff . + uses: astral-sh/ruff-action@v1 + with: + args: format --check + version: 0.8.0 - name: Run mypy run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6aef29..a0fb099 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,18 +32,18 @@ repos: - id: yamlfmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.8.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.8.0 hooks: - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: [numpy, types-PyYAML, pandas>=2.0.3]