From 05b95870496505dbfd40fe46caf1ea5ef062557f Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:21:57 +0200 Subject: [PATCH 1/2] MyPy: show_error_codes deprecated Must not have show_error_codes. It is now the default. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8c8a32db..1edf4b4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,6 @@ exclude_lines = ["pragma: no cover", "@abc.abstractmethod", "@abc.abstractproper [tool.mypy] strict = true -show_error_codes = true enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] warn_unused_ignores = true From 59b861b68040835c80a955919824036d00432e09 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:23:45 +0200 Subject: [PATCH 2/2] ruff: show fixes if fixes enabled If --fix is present, --show-fixes must be too. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8dc94e9f..84662d33 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,5 +19,5 @@ repos: rev: v0.1.11 hooks: - id: ruff - args: [ --fix ] + args: [ --fix, --show-fixes ] - id: ruff-format