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.
This commit is contained in:
correctmost 2025-05-28 06:19:03 +00:00 committed by GitHub
parent df8cb4fb39
commit 5aa1c90b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -35,7 +35,6 @@ repos:
hooks:
- id: mypy
args: [
'--show-traceback',
'--config-file=pyproject.toml'
]
fail_fast: true

View File

@ -82,6 +82,7 @@ enable_error_code = [
"unimported-reveal",
"unused-awaitable",
]
show_traceback = true
strict = true
strict_bytes = true
warn_unreachable = true