From b0b7f36447c0e2db150ebd1cbbee3b2f329c0030 Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sat, 21 Feb 2026 19:43:54 +0900 Subject: [PATCH] fix lint workflow --- .github/workflows/pr-lint-typecheck.yml | 11 ++++++++++- Makefile | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.github/workflows/pr-lint-typecheck.yml b/.github/workflows/pr-lint-typecheck.yml index 1701b02..04eb80a 100644 --- a/.github/workflows/pr-lint-typecheck.yml +++ b/.github/workflows/pr-lint-typecheck.yml @@ -1,6 +1,15 @@ name: PR Lint and Type Check on: + push: + branches: + - main + paths: + - ".github/workflows/pr-lint-typecheck.yml" + - "pyproject.toml" + - "uv.lock" + - "stackchan_server/**" + - "example_apps/**" pull_request: paths: - ".github/workflows/pr-lint-typecheck.yml" @@ -26,7 +35,7 @@ jobs: python-version: "3.13" - name: Install dependencies - run: uv sync --group dev --group example-gemini --frozen + run: uv sync --all-groups --frozen - name: Ruff run: uv run ruff check stackchan_server example_apps diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89a9ae3 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +lint: + uv run ruff check stackchan_server example_apps + uv run ty check stackchan_server example_apps