From c6f9db205f7d42269864665d8a9ffb0067fdeb46 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 24 Apr 2024 13:31:49 +0100 Subject: [PATCH] update pre-commit --- .pre-commit-config.yaml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99acf94..1c5b278 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,26 +7,26 @@ repos: - id: seed-isort-config - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.3.0 hooks: - id: black args: [--target-version=py36] - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v3.15.1 hooks: - id: pyupgrade args: - --py36-plus - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.5.0 hooks: - id: trailing-whitespace exclude: .bumpversion.cfg @@ -45,7 +45,7 @@ repos: - --autofix - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [ @@ -63,13 +63,22 @@ repos: ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v1.9.0 hooks: - id: mypy - language_version: python3 + + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.9.0 + hooks: + - id: mypy + args: [ + --disallow-untyped-defs, + --ignore-missing-imports, + ] + exclude: tests/ - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.3 + rev: v1.35.1 hooks: - id: yamllint # args: [--config-data=relaxed]