From 95c926e231eb0b2a9e4099df46b29a473d95f0fd Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 12 Aug 2024 17:04:21 +0000 Subject: [PATCH] chore(internal): ensure package is importable in lint cmd --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8a244bc4..bef12f23 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 openlayer'" + typecheck = { chain = [ "typecheck:pyright", "typecheck:mypy"