Skip to content

Commit 9a939d8

Browse files
authored
Enable tracebacks when running mypy (#3425)
This will make it easier to diagnose intermittent mypy crashes
1 parent 914ff20 commit 9a939d8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/mypy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- run: python --version
2121
- run: mypy --version
2222
- name: run mypy
23-
run: mypy --config-file pyproject.toml
23+
run: mypy --show-traceback --config-file pyproject.toml

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ repos:
3939
hooks:
4040
- id: mypy
4141
args: [
42+
'--show-traceback',
4243
'--config-file=pyproject.toml'
4344
]
4445
fail_fast: true

0 commit comments

Comments
 (0)