Codebase list python-faraday / 6114f54b-ea0e-4eef-88a0-b1bb89ad0301/main .pre-commit-config.yaml
6114f54b-ea0e-4eef-88a0-b1bb89ad0301/main

Tree @6114f54b-ea0e-4eef-88a0-b1bb89ad0301/main (Download .tar.gz)

.pre-commit-config.yaml @6114f54b-ea0e-4eef-88a0-b1bb89ad0301/mainraw · history · blame

default_stages: [commit]
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.1.0
    hooks:
    -   id: trailing-whitespace
    -   id: end-of-file-fixer
    -   id: check-json
    -   id: check-yaml
    -   id: debug-statements
-   repo: local
    hooks:
    -   id: sanity-check
        name: Commit SanityCheck
        entry: bash scripts/sanity_check_commit.sh
        language: system
        verbose: true
        stages: [merge-commit, commit, push]
    -   id: sanity-check-file
        name: File SanityCheck
        entry: scripts/sanity_check_file.py
        language: python
        verbose: true
        pass_filenames: false
        args: [--mode=diff]
        stages: [merge-commit, commit]
    -   id: sanity-check-file-push
        name: File Push SanityCheck
        entry: scripts/sanity_check_file.py
        language: python
        verbose: true
        pass_filenames: false
        args: [--mode=ls]
        stages: [push]