From ef1e3d98ed18792d589329319f09689ce24ce471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=AFs=20F=C3=A9d=C3=A9rico?= Date: Fri, 5 Jan 2024 15:28:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20slow=20tests=20check=20on?= =?UTF-8?q?=20pre-push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94cc90df..453d4934 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,21 @@ repos: rev: 22.10.0 hooks: - id: black + - repo: local + hooks: + - id: pytest-fast-check + name: pytest-fast-check + entry: ./venv/Scripts/python.exe -m pytest -m "not slow" + stages: ["commit"] + language: system + pass_filenames: false + always_run: true - repo: local hooks: - id: pytest-check name: pytest-check - entry: ./venv/Scripts/python.exe -m pytest -m "not slow" + entry: ./venv/Scripts/python.exe -m pytest + stages: ["push"] language: system pass_filenames: false always_run: true