From 51a253a7204e917a6522bd44702f533937565943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Fri, 17 May 2024 15:37:36 +0100 Subject: [PATCH] chore: Run pytest on pre-commit check (#1076) hugr-py has no actual tests yet, but we should start running pytest here before it does. --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 792e47d3f..fa88a8a45 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,3 +82,10 @@ repos: language: system files: \.rs$ pass_filenames: false + - id: py-test + name: pytest + description: Run python tests + entry: sh -c "poetry install && poetry run pytest" + language: system + files: \.py$ + pass_filenames: false