summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 49800473b5d714a2613be8f4904d5c48d6d5e168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ci:
  autofix_prs: false

repos:
  - repo: https://github.com/pycqa/isort
    rev: 5.11.5
    hooks:
      - id: isort

  - repo: https://github.com/psf/black
    rev: 23.1.0
    hooks:
      - id: black
        args: ["--target-version", "py310"]

  - repo: https://github.com/PyCQA/doc8
    rev: 0.10.1
    hooks:
      - id: doc8
        additional_dependencies:
          - toml

  # Removing since aristaproto don't use the java code and this breaks CI.
  # - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
  #   rev: v2.10.0
  #   hooks:
  #     - id: pretty-format-java
  #       args: [--autofix, --aosp]
  #       files: ^.*\.java$