From dee5ee923aeaf17408e1204615fada199429efda Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 19:03:40 +0000 Subject: [PATCH] chore(internal): ensure package is importable in lint cmd (#632) --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9c83944f..c0bc5e9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,10 +79,13 @@ format = { chain = [ "lint" = { chain = [ "check:ruff", "typecheck", + "check:importable", ]} "check:ruff" = "ruff check ." "fix:ruff" = "ruff check --fix ." +"check:importable" = "python -c 'import anthropic'" + typecheck = { chain = [ "typecheck:pyright", "typecheck:mypy"