From 81834055d7e7c686a2dfda3d989f36fdcf83f187 Mon Sep 17 00:00:00 2001 From: RasmusOrsoe Date: Sat, 2 Nov 2024 08:59:55 +0100 Subject: [PATCH] pre-commit<4.0 & autoupdate --- .pre-commit-config.yaml | 10 +++++----- setup.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd6bae19e..59d6f2cd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,28 +1,28 @@ exclude: '^(versioneer.py|src/graphnet/_version.py|docs/)' repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.10.0 hooks: - id: black language_version: python3 args: [--config=black.toml] - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 + rev: 7.1.1 hooks: - id: flake8 language_version: python3 - repo: https://github.com/pycqa/docformatter - rev: v1.5.0 + rev: v1.7.5 hooks: - id: docformatter language_version: python3 - repo: https://github.com/pycqa/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.982 + rev: v1.13.0 hooks: - id: mypy args: [--follow-imports=silent, --disallow-untyped-defs, --disallow-incomplete-defs, --disallow-untyped-calls] diff --git a/setup.py b/setup.py index 6daf0a46e..a0293e7b8 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -# type: ignore[no-untyped-call] +# mypy: disable-error-code="no-untyped-call" """Setup script for the GraphNeT package.""" from setuptools import setup, find_packages @@ -39,7 +39,7 @@ "MarkupSafe<=2.1", "mypy", "myst-parser", - "pre-commit<=4.0", + "pre-commit<4.0", "pydocstyle", "pylint", "pytest",