.pre-commit-config.yaml 733 Bytes
Newer Older
1
repos:
2
3
4
5
6
7
8
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.0.1
    hooks:
      - id: check-docstring-first
      - id: check-toml
      - id: check-yaml
        exclude: packaging/.*
9
10
        args:
          - --allow-multiple-documents
11
12
      - id: mixed-line-ending
        args: [--fix=lf]
13
14
      - id: end-of-file-fixer

15
  - repo: https://github.com/omnilib/ufmt
Edward Z. Yang's avatar
Edward Z. Yang committed
16
    rev: v1.3.3
17
18
19
    hooks:
      - id: ufmt
        additional_dependencies:
20
21
          - black == 22.3.0
          - usort == 1.0.2
22

Philip Meier's avatar
Philip Meier committed
23
  - repo: https://github.com/PyCQA/flake8
Philip Meier's avatar
Philip Meier committed
24
    rev: 5.0.4
25
26
27
    hooks:
      - id: flake8
        args: [--config=setup.cfg]
Philip Meier's avatar
Philip Meier committed
28
29
30
31
32

  - repo: https://github.com/PyCQA/pydocstyle
    rev: 6.1.1
    hooks:
      - id: pydocstyle