mirror of https://github.com/google/yapf.git
37 lines
913 B
YAML
37 lines
913 B
YAML
# File introduces automated checks triggered on git events
|
|
# to enable run `pip install pre-commit && pre-commit install`
|
|
|
|
repos:
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- repo: local
|
|
hooks:
|
|
- id: yapf
|
|
name: yapf
|
|
language: python
|
|
entry: yapf
|
|
args: [-i]
|
|
types: [python]
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 6.0.0
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: check-docstring-first
|
|
- id: check-added-large-files
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: check-merge-conflict
|
|
- id: double-quote-string-fixer
|
|
- id: end-of-file-fixer
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|