From 937c695d654050feaa1196933ec675d69274009f Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 29 Jan 2024 16:16:44 +0100 Subject: [PATCH] Replace black with ruff format (iiasa/message_ix#772) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump mypy version to 1.8.0. - Bump ruff version 0.0.287 → 0.1.14. --- .pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ccc97562f..7e5a78941 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: language: python entry: bash -c ". ${PRE_COMMIT_MYPY_VENV:-/dev/null}/bin/activate 2>/dev/null; mypy $0 $@" additional_dependencies: - - mypy + - mypy >= 1.8.0 - genno - GitPython - nbclient @@ -23,6 +23,8 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.1.14 hooks: - id: ruff + - id: ruff-format + args: [ --check ]