From c8872e0f975b17105e9bab61d5fd9ff53bb46ba9 Mon Sep 17 00:00:00 2001 From: Mauricio Villegas <5780272+mauvilsa@users.noreply.github.com> Date: Thu, 3 Aug 2023 22:18:07 +0200 Subject: [PATCH] Change heavy hooks from pre-commit to pre-push. --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d9efa7d..b87e325e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -94,6 +94,7 @@ repos: - id: mypy name: mypy jsonargparse*/*.py entry: bash -c "mypy jsonargparse*/*.py" + stages: [pre-push] language: system types: [python] pass_filenames: false @@ -102,6 +103,7 @@ repos: - id: tox name: tox --parallel entry: tox --parallel + stages: [pre-push] language: system pass_filenames: false verbose: true @@ -124,6 +126,7 @@ repos: sed -i /__future__/d *.py; pytest --color=yes"; fi' + stages: [pre-push] language: system pass_filenames: false @@ -138,6 +141,7 @@ repos: cd "$TEST_DIR"; sed -i "/^from __future__ import annotations$/d" *.py; pytest $TEST_DIR;' + stages: [pre-push] language: system pass_filenames: false @@ -150,6 +154,7 @@ repos: else sphinx-build -M doctest sphinx sphinx/_build sphinx/index.rst; fi' + stages: [pre-push] language: system pass_filenames: false verbose: true @@ -157,6 +162,7 @@ repos: - id: coverage name: pytest -v -s --cov --cov-report=term --cov-report=html entry: pytest -v -s --cov --cov-report=term --cov-report=html + stages: [pre-push] language: system pass_filenames: false verbose: true