.pre-commit-config.yaml 680 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
      - id: mixed-line-ending
        args: [--fix=lf]
11
12
      - id: end-of-file-fixer

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

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

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