From 37379acc48127902859cf64b08c5669143621be9 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Tue, 24 Dec 2024 15:00:20 +0800 Subject: [PATCH] fix: update mypy command to use python module and remove unused python_executable setting Signed-off-by: -LAN- --- .github/workflows/api-tests.yml | 2 +- api/mypy.ini | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index d7de71f99b52c2..fd98db24b961b4 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -59,7 +59,7 @@ jobs: - name: Run mypy run: | pushd api - poetry run mypy --install-types --non-interactive . + poetry run python -m mypy --install-types --non-interactive . popd - name: Set up dotenvs diff --git a/api/mypy.ini b/api/mypy.ini index 4ac7f8c49690dd..2c754f9fcd7c63 100644 --- a/api/mypy.ini +++ b/api/mypy.ini @@ -1,5 +1,4 @@ [mypy] -python_executable = .venv/bin/python warn_return_any = True warn_unused_configs = True check_untyped_defs = True