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"]