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 use poetry and installed flake8 and mypy in a local venv using poetry. Flake works fine but mypy does not report any issues. To be clear it does report something: Success: no issues found in 1 source file But it should instead report an issue with the code.
Here is the code i want to check:
defa() ->str:
1
Clearly, mypy should complain about the missing return statement.
Here is the output of the Output tab:
LSP Notebooks experiment is disabled -- not using Pylance
LSP Notebooks interactive window support is disabled -- not in LSP Notebooks experiment
> conda info --json
Python interpreter path: ./.venv/bin/python
> ~/.conda/bin/conda info --json
> . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/printEnvVariables.py
> ~/.julia/conda/3/bin/conda info --json
> ./.venv/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/interpreterInfo.py
> /bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/interpreterInfo.py
> /usr/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/interpreterInfo.py
> ~/.julia/conda/3/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/get_output_via_markers.py ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/interpreterInfo.py
Starting Jedi language server for rootsnakes.
> ./.venv/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/linter.py -m mypy --follow-imports=silent --ignore-missing-imports --show-column-numbers --no-pretty ./rootsnakes/app.py
cwd: .
> ./.venv/bin/python ~/.vscode-oss/extensions/ms-python.python-2022.16.1-universal/pythonFiles/linter.py -m flake8 ./rootsnakes/app.py
cwd: .
##########Linting Output - mypy##########
Success: no issues found in 1 source file
##########Linting Output - flake8##########
When we run the exact same command in the terminal window (with venv activated) or in a fresh shell without activating the venv we get the expected result:
Type: Bug
I use poetry and installed flake8 and mypy in a local venv using poetry. Flake works fine but mypy does not report any issues. To be clear it does report something:
Success: no issues found in 1 source file
But it should instead report an issue with the code.Here is the code i want to check:
Clearly, mypy should complain about the missing return statement.
Here is the output of the Output tab:
When we run the exact same command in the terminal window (with venv activated) or in a fresh shell without activating the venv we get the expected result:
Extension version: 2022.16.1
VSCodium version: VSCodium 1.72.2 (378660f7dd07287aa34acf90e8fec157425c1ac8, 2022-10-16T23:03:19.989Z)
OS version: Linux x64 5.15.0-52-generic snap
Modes:
Sandboxed: No
System Info
The text was updated successfully, but these errors were encountered: