File size: 858 Bytes
a62624f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
default_language_version:
  node: system
  python: python3.8
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: debug-statements
      - id: end-of-file-fixer
        exclude: "^.*.crt|^.*.json|^.*.svg|^.*.txt"
      - id: requirements-txt-fixer
      - id: trailing-whitespace
      # - id: pretty-format-json
      #   args: [--autofix]

  - repo: https://github.com/astral-sh/ruff-pre-commit
    # Ruff version.
    rev: v0.0.282
    hooks:
      - id: ruff
        args: [--fix, --exit-non-zero-on-fix]

  - repo: https://github.com/psf/black
    rev: 23.7.0
    # TODO: ensure that the black version is aligned, with another hook?
    hooks:
      - id: black
        language: python
        types: [python]

  - repo: meta
    hooks:
      - id: check-useless-excludes
      - id: check-hooks-apply