.pre-commit-config.yaml 958 Bytes
Newer Older
1
exclude: ^experiments/simbricks/orchestration/utils/graphlib.py$
2
repos:
3
  - repo: local
4
    hooks:
5
6
7
8
9
10
11
12
13
14
15
      - id: format-isort
        name: format-isort
        language: python
        entry: make format-isort
        pass_filenames: false
      - id: format-yapf
        name: format-yapf
        language: python
        entry: make format-yapf
        pass_filenames: false
  - repo: https://github.com/PyCQA/docformatter
16
    rev: v1.7.5
17
    hooks:
18
19
20
21
      - id: docformatter
        args:
          [
            --in-place,
22
23
            --wrap-summaries=100,
            --wrap-descriptions=100,
24
25
26
            --pre-summary-newline,
          ]
  - repo: https://github.com/pre-commit/pre-commit-hooks
27
    rev: v4.6.0
Jonas Kaufmann's avatar
Jonas Kaufmann committed
28
    hooks:
29
30
31
32
33
34
35
36
37
38
      - id: double-quote-string-fixer
        types:
          - "python"
      - id: end-of-file-fixer
        types:
          - "python"
      - id: trailing-whitespace
        types:
          - "python"
      - id: check-ast