From 2708308673c2f26c4d08b81a18fe68c1f2ec934d Mon Sep 17 00:00:00 2001 From: jk Date: Mon, 6 May 2024 23:40:08 +0200 Subject: [PATCH] update pre-commit action + autoupdate --- .github/workflows/pre-commit.yml | 11 +++++++---- .pre-commit-config.yaml | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 6095e08..afac715 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,6 +1,7 @@ +--- name: pre-commit -on: +on: # yamllint disable-line rule:truthy pull_request: push: branches: [master] @@ -9,6 +10,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.1 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a843cfc..a588dea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,14 @@ default_language_version: python: python3.10 repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.1 + rev: v0.4.3 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.10.0 hooks: - id: mypy args: [--explicit-package-bases, --namespace-packages]