From 0a92c067501fb9626c158caf77e133ab9102ae6f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:59:46 +0000 Subject: [PATCH] chore(internal): ensure package is importable in lint cmd (#55) --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 6c19226..1dac3c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,10 +76,13 @@ format = { chain = [ "lint" = { chain = [ "check:ruff", "typecheck", + "check:importable", ]} "check:ruff" = "ruff check ." "fix:ruff" = "ruff check --fix ." +"check:importable" = "python -c 'import writerai'" + typecheck = { chain = [ "typecheck:pyright", "typecheck:mypy"