-
Notifications
You must be signed in to change notification settings - Fork 33
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.41 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
# Should match pyproject.toml.
rev: "23.3.0"
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
# Should match pyproject.toml.
rev: 5.12.0
hooks:
- id: isort
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/python-poetry/poetry
rev: "1.5.1"
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/pylint-dev/pylint
rev: "v3.0.0a6"
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
- repo: local
hooks:
- id: pyright
name: pyright
entry: poetry run pyright # used to just be `pyright`
language: node
pass_filenames: true
types: [python]