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:
parent
df8cb4fb39
commit
5aa1c90b12
|
|
@ -20,4 +20,4 @@ jobs:
|
||||||
- run: python --version
|
- run: python --version
|
||||||
- run: mypy --version
|
- run: mypy --version
|
||||||
- name: run mypy
|
- name: run mypy
|
||||||
run: mypy --show-traceback --config-file pyproject.toml
|
run: mypy --config-file pyproject.toml
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: [
|
args: [
|
||||||
'--show-traceback',
|
|
||||||
'--config-file=pyproject.toml'
|
'--config-file=pyproject.toml'
|
||||||
]
|
]
|
||||||
fail_fast: true
|
fail_fast: true
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ enable_error_code = [
|
||||||
"unimported-reveal",
|
"unimported-reveal",
|
||||||
"unused-awaitable",
|
"unused-awaitable",
|
||||||
]
|
]
|
||||||
|
show_traceback = true
|
||||||
strict = true
|
strict = true
|
||||||
strict_bytes = true
|
strict_bytes = true
|
||||||
warn_unreachable = true
|
warn_unreachable = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue