• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# File introduces automated checks triggered on git events
2# to enable run `pip install pre-commit && pre-commit install`
3
4repos:
5  - repo: https://github.com/pycqa/isort
6    rev: 5.13.2
7    hooks:
8      - id: isort
9        name: isort (python)
10  - repo: local
11    hooks:
12      - id: yapf
13        name: yapf
14        language: python
15        entry: yapf
16        args: [-i]
17        types: [python]
18  - repo: https://github.com/pycqa/flake8
19    rev: 7.0.0
20    hooks:
21      - id: flake8
22  - repo: https://github.com/pre-commit/pre-commit-hooks
23    rev: v4.5.0
24    hooks:
25      - id: trailing-whitespace
26      - id: check-docstring-first
27      - id: check-added-large-files
28      - id: check-yaml
29      - id: debug-statements
30      - id: check-merge-conflict
31      - id: double-quote-string-fixer
32      - id: end-of-file-fixer
33  - repo: meta
34    hooks:
35      - id: check-hooks-apply
36      - id: check-useless-excludes
37