Skip to content

Commit

Permalink
docs: add poetry configuration example for mypy (#3059)
Browse files Browse the repository at this point in the history
* docs: add poetry configuration example for `mypy`

* Update docs/editors/mypy.md

---------

Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com>
  • Loading branch information
Mukhametvaleev and patrick91 authored Sep 19, 2023
1 parent 773aff9 commit 319bd5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/editors/mypy.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ root of our project and add the following settings:
plugins = strawberry.ext.mypy_plugin
```

You can also configure Mypy inside the `pyproject.toml` file, like so:

```toml
[tool.mypy]
plugins = ["strawberry.ext.mypy_plugin"]
```

Once you have configured the settings, you can run `mypy` and you should be
getting type checking errors.

0 comments on commit 319bd5e

Please sign in to comment.