codeclimate-mypy
is a Code Climate engine that wraps the mypy static type checker. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
- If you haven't already, install the Code Climate CLI.
- Enable the engine through the beta channel in your .codeclimate.yml file:
engines:
mypy:
enabled: true
channel: "beta"
- You're ready to analyze! Browse into your project's folder and run
codeclimate analyze
.
You can configure codeclimate-mypy
to use various mypy
CLI options from your .codeclimate.yml
config:
engines:
mypy:
enabled: true
channel: "beta"
options:
- "--ignore-missing-imports"
- "--strict"
See the official mypy documentation for all available options.