-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.36 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.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: double-quote-string-fixer
# This stopped working so comment out for now (started applying to files that didn't need it):
# - id: fix-encoding-pragma
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.961
hooks:
- id: mypy
exclude: setup.py|docs/conf.py|tests
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
exclude: setup.py|docs/conf.py|tests
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
# https://pre-commit.com/#repository-local-hooks
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: node
types: [python]
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: setup.py|run_tests.py|docs/conf.py
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.2.0
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs