summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 85dac3e95e148a1269037195d993cf4d7fce8de2 (plain) (blame)
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
36
37
38
39
40
41
repos:
- repo: https://github.com/python-poetry/poetry
  rev: 'master'
  hooks:
    - id: poetry-check
    - id: poetry-install
    - id: poetry-lock
    - id: poetry-export


- repo: https://github.com/psf/black
  rev: 23.9.1
  hooks:
    - id: black


- repo: https://github.com/pycqa/pydocstyle
  rev: 6.3.0
  hooks:
    - id: pydocstyle


- repo: local
  hooks:
    - id: pylint
      name: pylint
      entry: pylint
      language: system
      types: [python]
      args:
        [
          "-rn", # Only display messages
          "-sn", # Don't display the score
        ]

    - id: pytype
      name: pytype
      entry: poetry run pytype
      language: system
      types: [python]
      args: ["--keep-going"]