You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been adding type annotations to twine, but only for the source (i.e., not the tests). Our tox configuration only runs mypy on the source directory, but the VS Code mypy support runs commands like mypy tests/test_upload.py, which results in spurious errors.
In pypa/twine#619, I worked around this by making the tests directory a package, and telling mypy to ignore errors. This feels hacky, but according to python/mypy#4675, it seems like the only way to tell mypy to ignore a directory.
So, I'm wondering if options like python.linting.mypyIgnorePatterns could be added, or if python.linting.ignorePatterns could be on object with keys like mypy. In both cases, the values would be a list of patterns.
The text was updated successfully, but these errors were encountered:
Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.
Possible duplicate of #3396, and related to microsoft/vscode-black-formatter#359.
I've been adding type annotations to twine, but only for the source (i.e., not the tests). Our tox configuration only runs mypy on the source directory, but the VS Code mypy support runs commands like
mypy tests/test_upload.py
, which results in spurious errors.In pypa/twine#619, I worked around this by making the
tests
directory a package, and telling mypy to ignore errors. This feels hacky, but according to python/mypy#4675, it seems like the only way to tell mypy to ignore a directory.So, I'm wondering if options like
python.linting.mypyIgnorePatterns
could be added, or ifpython.linting.ignorePatterns
could be on object with keys likemypy
. In both cases, the values would be a list of patterns.The text was updated successfully, but these errors were encountered: