Replies: 3 comments 4 replies
-
Don't know if this is the right place for this (if not I can make a different discussion point), but if we decide to turn off the requirement of docstrings for testing functions the way we did it in a different project was to add per-file-ignores =
test/test_*.py: D103 under the |
Beta Was this translation helpful? Give feedback.
-
That's useful but I think you're right that this isn't the right place for it 😉. You could open a new discussion or it could be a new issue. |
Beta Was this translation helpful? Give feedback.
-
Turning on the |
Beta Was this translation helpful? Give feedback.
-
As discussed in the meeting, there are various options that one can enable in
mypy
. The options can be added to a section inpyproject.toml
like so:Those options are ones that I'm using for another project and they may not all suit you. The one that I'd strongly recommend is
ignore_missing_imports = true
. It stopsmypy
from giving errors when types for external libraries are unknown (as is very commonly the case!). The other options essentially just make type annotations mandatory everywhere -- otherwisemypy
will only check that annotations are correct, not whether they are present.Beta Was this translation helpful? Give feedback.
All reactions