-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 3.10 in CI, mypy checks files in site-packages #13882
Comments
Upgrade to mypy 0.982 or downgrade to Python 3.10.6 #13627 |
@hauntsaninja
|
No, there's no such limitation, see https://pypi.org/project/mypy/0.982/#files |
I've been able to |
indeed, I'm using Azure artifact pypi, it cannot find mypy==0.982 for Python 3.10 but when I switched to public pypi index, it works. But with Azure artifact pypi it can find 0.982 for other Python versions. |
I sometimes have to deal with Azure artifacts at work too and it sucks :-) Best of luck! |
Thx, I just fired a case to Azure :) |
Bug Report
Hello,
I'm using Azure pipeline agent with
python 3.10
. with latest mypy version triggered by pre-commit, with pyproject.toml config file.I installed all the python packages without venv, as it's a CI agent.
During the pre-commit check, it throws mypy error on:
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/pandas-stubs/core/series.pyi:314: error: Positional-only parameters are only supported in Python 3.8 and greater [syntax]
For Azure pipeline agent with python
3.8
and3.9
, there's no such error.And I also tried multiple options to exclude the file by pattern
site-packages
in the config filepyproject.toml
as per this doc, none of them works, except for".py"
or'.py'
, but it disables the check at all.Could anybody provide the correct the exclude syntax in
pyproject.toml
to exclude files by path keyword, where in my case is/site-packages/
To Reproduce
See above bug report section
Expected Behavior
No cheks for files in site-packages
Actual Behavior
Mypy checks files in python packages
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: