From f06cc339cc8155e1e42be5e49d66fa8d8449f3f0 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Sat, 28 Mar 2026 22:04:22 +0800 Subject: [PATCH] chore(ci): remove duplicate pyrefly work from style lane (#34213) --- .github/workflows/style.yml | 2 +- Makefile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 23ae36f7b1..7b269ccf4e 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -49,7 +49,7 @@ jobs: - name: Run Type Checks if: steps.changed-files.outputs.any_changed == 'true' - run: make type-check + run: make type-check-core - name: Dotenv check if: steps.changed-files.outputs.any_changed == 'true' diff --git a/Makefile b/Makefile index 55871c86a7..c377b7c671 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,12 @@ type-check: @uv --directory api run mypy --exclude-gitignore --exclude 'tests/' --exclude 'migrations/' --check-untyped-defs --disable-error-code=import-untyped . @echo "โœ… Type checks complete" +type-check-core: + @echo "๐Ÿ“ Running core type checks (basedpyright + mypy)..." + @./dev/basedpyright-check $(PATH_TO_CHECK) + @uv --directory api run mypy --exclude-gitignore --exclude 'tests/' --exclude 'migrations/' --check-untyped-defs --disable-error-code=import-untyped . + @echo "โœ… Core type checks complete" + test: @echo "๐Ÿงช Running backend unit tests..." @if [ -n "$(TARGET_TESTS)" ]; then \ @@ -133,6 +139,7 @@ help: @echo " make check - Check code with ruff" @echo " make lint - Format, fix, and lint code (ruff, imports, dotenv)" @echo " make type-check - Run type checks (basedpyright, pyrefly, mypy)" + @echo " make type-check-core - Run core type checks (basedpyright, mypy)" @echo " make test - Run backend unit tests (or TARGET_TESTS=./api/tests/)" @echo "" @echo "Docker Build Targets:"