mypy
The MyPy Python type checker (http://mypy-lang.org/).
Backend: ``
Config section: [mypy]
Basic options
args
--mypy-args="[<shell_str>, <shell_str>, ...]"
PANTS_MYPY_ARGS
pants.toml
[mypy]
args = [
<shell_str>,
<shell_str>,
...,
]
default:
[]
Arguments to pass directly to mypy, e.g. --mypy-args="--python-version 3.7 --disallow-any-expr"
skip
--[no-]mypy-skip
PANTS_MYPY_SKIP
pants.toml
[mypy]
skip = <bool>
default:
False
Don't use MyPy when running /home/josh/work/scie-pants/dist/pants typecheck
.
Advanced options
config
--mypy-config=<file_option>
PANTS_MYPY_CONFIG
pants.toml
[mypy]
config = <file_option>
default:
None
Path to a config file understood by MyPy (https://mypy.readthedocs.io/en/stable/config_file.html).
Setting this option will disable [mypy].config_discovery
. Use this option if the config is located in a non-standard location.