From 5aa1c90b12653c8f8d1f371e85fe8e9dfb49705d Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Wed, 28 May 2025 06:19:03 +0000 Subject: [PATCH] Enable mypy's show_traceback option in pyproject.toml (#3514) This makes it easier to debug mypy crashes when running 'mypy' in the project directory. --- .github/workflows/mypy.yaml | 2 +- .pre-commit-config.yaml | 1 - pyproject.toml | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml index 1829fe62..0d630e3f 100644 --- a/.github/workflows/mypy.yaml +++ b/.github/workflows/mypy.yaml @@ -20,4 +20,4 @@ jobs: - run: python --version - run: mypy --version - name: run mypy - run: mypy --show-traceback --config-file pyproject.toml + run: mypy --config-file pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c41e8ff..6cc11653 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,6 @@ repos: hooks: - id: mypy args: [ - '--show-traceback', '--config-file=pyproject.toml' ] fail_fast: true diff --git a/pyproject.toml b/pyproject.toml index 3248b02c..960bb4a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,7 @@ enable_error_code = [ "unimported-reveal", "unused-awaitable", ] +show_traceback = true strict = true strict_bytes = true warn_unreachable = true