Conversation
Notices
-
Embed this notice
clacke (clacke@libranet.de)'s status on Monday, 20-Feb-2023 19:19:22 JST clacke Just discovered while reading werkzeug's pyproject.toml that #mypy can read pyproject.toml "now"! (as of 0.900, June two years ago)
Guido was vehemently against that last time I checked (four years ago).
And it's not just a mypy.ini transplant, it's making use of toml to improve the parameter format. Nice!
@python #python-
Embed this notice
Gert van Dijk (gertvdijk@mastodon.social)'s status on Monday, 20-Feb-2023 20:59:16 JST Gert van Dijk @clacke ?
My favorite starting point is:
```toml
[tool.mypy]
strict = true
show_error_codes = true
show_column_numbers = true
show_error_context = true
```Some options in `pyproject.toml` started to work in later / more recent versions for me. E.g. `--strict` did not work for me ~ 1yr ago, but it does now.
clacke likes this.
-
Embed this notice