> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# mypy

> mypy is a linter for Python

[**mypy**](https://github.com/python/mypy#readme) is a linter for Python.

You can enable the mypy linter with:

```shell theme={null}
trunk check enable mypy
```

<Frame caption="mypy example output">
  <img src="https://mintcdn.com/trunk-4cab4936/WAR0qJ1WO0rtUlqz/assets/code-quality/overview/linters/supported/mypy.gif?s=bce0534ee9902ecbcb518c87fc0ccf11" alt="mypy example output" width="1000" height="600" data-path="assets/code-quality/overview/linters/supported/mypy.gif" />
</Frame>

## Auto Enabling

mypy will be auto-enabled if any of its config files are present: *`mypy.ini`, `.mypy.ini`*.

## Settings

mypy supports the following config files:

* `mypy.ini`
* `.mypy.ini`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](../configure-linters#moving-linters) for more info.

## Links

* [mypy site](https://github.com/python/mypy#readme)
* mypy Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/mypy)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
