From 96c37361f9a0cb5f49ec4570b7e33538f56ed685 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Mon, 22 Apr 2024 17:31:03 +0200 Subject: [PATCH] use python 3.10 for pre-commit to avoid deprecation issue form pydocstyle --- .github/workflows/cicd.yaml | 2 +- .pre-commit-config.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index dadc8f1..5c4febe 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -6,7 +6,7 @@ on: branches: [main] env: - LATEST_PY_VERSION: '3.11' + LATEST_PY_VERSION: '3.10' jobs: test: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a985848..49f90ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,14 @@ repos: hooks: - id: isort language_version: python + - repo: https://github.com/psf/black rev: 22.12.0 hooks: - id: black args: ["--safe"] language_version: python + - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: @@ -42,6 +44,7 @@ repos: # - id: mypy # language_version: python3.8 # args: [--no-strict-optional, --ignore-missing-imports] + - repo: https://github.com/PyCQA/pydocstyle rev: 6.3.0 hooks: