Skip to content

Commit

Permalink
Change heavy hooks from pre-commit to pre-push.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvilsa committed Aug 3, 2023
1 parent 9af3390 commit c8872e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -102,6 +103,7 @@ repos:
- id: tox
name: tox --parallel
entry: tox --parallel
stages: [pre-push]
language: system
pass_filenames: false
verbose: true
Expand All @@ -124,6 +126,7 @@ repos:
sed -i /__future__/d *.py;
pytest --color=yes";
fi'
stages: [pre-push]
language: system
pass_filenames: false

Expand All @@ -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

Expand All @@ -150,13 +154,15 @@ repos:
else
sphinx-build -M doctest sphinx sphinx/_build sphinx/index.rst;
fi'
stages: [pre-push]
language: system
pass_filenames: false
verbose: true

- 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

0 comments on commit c8872e0

Please sign in to comment.