summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
blob: 8d845554c7258da6b43e75f085a99e9f0534757a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: check-added-large-files
      - id: check-ast
      - id: check-case-conflict
      - id: check-merge-conflict
      - id: check-toml
      - id: check-yaml
      - id: check-vcs-permalinks
      - id: end-of-file-fixer
      - id: trailing-whitespace


  - repo: https://github.com/adrienverge/yamllint.git
    rev: v1.29.0
    hooks:
      - id: yamllint
        args: [--strict]

  - 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/isort
    rev: 5.12.0
    hooks:
      - id: isort


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


  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.5.1
    hooks:
      - id: mypy
        additional_dependencies: [types-requests]


  - 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"]