From 246ee67fb37862291a98e8b8de78c45725975263 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Fri, 10 Jul 2026 00:39:48 +0200 Subject: [PATCH] update(typecheck): added typecheck in workflow and pyproject --- .gitea/workflows/python.yml | 23 +++++++++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 27 insertions(+) diff --git a/.gitea/workflows/python.yml b/.gitea/workflows/python.yml index 270c3b4..2baf3ed 100644 --- a/.gitea/workflows/python.yml +++ b/.gitea/workflows/python.yml @@ -81,6 +81,29 @@ jobs: cd cli python -m pytest tests/ -v + typecheck: + runs-on: alpine + container: node:26-alpine + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install tools + run: | + apk add --no-cache \ + git \ + python3 \ + py3-pip + python3 -m venv .venv + . .venv/bin/activate + pip install --no-cache-dir basedpyright + + - name: Type check + run: | + . .venv/bin/activate + basedpyright + buildcheck: runs-on: alpine container: node:26-alpine diff --git a/pyproject.toml b/pyproject.toml index d1aa9c9..2c53644 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,10 @@ select = [ "RUF", ] +[tool.basedpyright] +typeCheckingMode = "basic" +include = ["cli/src"] + [tool.pytest.ini_options] testpaths = ["cli/tests"] pythonpath = ["cli/src"]