From 1d88db0cd80ad10bc403ded04db975df99d9e0c0 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:05:02 +0000 Subject: [PATCH] chore(internal): ensure package is importable in lint cmd (#1631) --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9600130ca3..12360cbab7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,10 +83,13 @@ format = { chain = [ "lint" = { chain = [ "check:ruff", "typecheck", + "check:importable", ]} "check:ruff" = "ruff check ." "fix:ruff" = "ruff check --fix ." +"check:importable" = "python -c 'import openai'" + typecheck = { chain = [ "typecheck:pyright", "typecheck:mypy"