From 21a6e47eed92d21114a78e358ae76316ca16717d Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 15 Nov 2024 23:22:32 -0500 Subject: [PATCH] ci: add type checking to ci --- .forgejo/workflows/ci.yml | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 11d4935..3b65ecf 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -13,6 +13,10 @@ jobs: run: pipx run pre-commit run check-yaml -a - name: Validate shell scripts run: pipx run pre-commit run shellcheck -a + - name: Check types + run: | + pipx install . + pipx run pre-commit run pyright -a export-trace: runs-on: runner-latest needs: [static-analysis] diff --git a/pyproject.toml b/pyproject.toml index a21a98f..6627517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "blogue" version = "0.1.0" description = "Basic static site generator that powers my blog." readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.11" dependencies = [ "click>=8.1.7", "httpx>=0.27.2",