prehistoric-wire-35783
11/02/2024, 12:25 AMpants check ::
and I can see the most bizarre behaviour. It is running against code that is under `~/.cache`:
17:23:27.08 [ERROR] Completed: Typecheck using MyPy - mypy - mypy failed (exit code 1).
/Users/hwasunglee/.cache/pants/named_caches/pex_root/venvs/b6931bdae8f8b96dc1667880821ad38804708c39/61e31f7f20e144a11daf2c769c9d0900c3179016/lib/python3.9/site-packages/streamlit/connections/sql_connection.py:18:1: error: disable_error_code: Invalid error code(s): import-not-found [misc]
Why is pants running mypy
against code under ~/.cache
? I ignore 3rd party stuff in my `mypy.ini`:
[mypy]
error_summary = True
ignore_missing_imports = True
pretty = True
show_absolute_path = True
show_column_numbers = True
strict = True
Perhaps a bug?prehistoric-wire-35783
11/02/2024, 1:52 AMmypy
using lockfiles if anyone encounters this error.careful-address-89803
11/07/2024, 5:26 AM--keep-sandboxes=always
, it'll keep the sandbox open. you could then inspect the command invocation or see what symlinks into that file.
You could also try deleting the Pants cache and seeing if it persists.prehistoric-wire-35783
11/07/2024, 5:30 AMmypy
; I know it is still doing the check underneath but it works for now...able-school-92027
01/23/2025, 9:28 PMmicroscopic-knife-5995
01/23/2025, 9:47 PMmypy
I am currently using 1.14.x series...