Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] make pre-commit hooks to run on every push instead of every commit #8888

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Requirements:
# - How to configure:
# - $ pip install pre-commit
# - $ pre-commit install
# - $ pre-commit install --hook-type pre-push
# - How to prevent running it:
# - git options: --no-verify or -n
# - $ git commit -n -m "YOUR COMMIT MESSAGE"
Expand All @@ -32,8 +32,9 @@
#

default_language_version:
python: python3.8
python: python3.6
fail_fast: True
default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
Expand All @@ -42,7 +43,9 @@ repos:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
stages: [push]
- id: trailing-whitespace
stages: [push]
- repo: local
hooks:
- id: run-black
Expand Down