Skip to content

Commit 6bbbda8

Browse files
committed
Enable mypy's show_traceback option in pyproject.toml
This makes it easier to debug mypy crashes when running 'mypy' in the project directory.
1 parent 7a455cb commit 6bbbda8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.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 --show-traceback --config-file pyproject.toml
23+
run: mypy --config-file pyproject.toml

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ repos:
3535
hooks:
3636
- id: mypy
3737
args: [
38-
'--show-traceback',
3938
'--config-file=pyproject.toml'
4039
]
4140
fail_fast: true

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ enable_error_code = [
8282
"unimported-reveal",
8383
"unused-awaitable",
8484
]
85+
show_traceback = true
8586
strict = true
8687
strict_bytes = true
8788
warn_unreachable = true

0 commit comments

Comments
 (0)