-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.38 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/schuellerf/pre-commit-pyspelling
rev: 0.1.0
hooks:
- id: pyspelling
args: ["--config", ".spellcheck.yml"]
# - repo: https://github.com/golangci/golangci-lint
# rev: v1.63.1
# hooks:
# - id: golangci-lint
- repo: https://github.com/hhatto/autopep8
rev: v2.3.0
hooks:
- id: autopep8
- repo: https://github.com/pycqa/pylint
rev: v3.2.6
hooks:
- id: pylint
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
files: ^(?!test/|tools/)
- id: pylint
name: pylint test/ directory
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
args: ["--rcfile=test/.pylintrc"]
files: ^test/
- id: pylint
name: pylint tools/ directory
additional_dependencies: ["PyYAML", "types-PyYAML", "pytest"]
args: ["--rcfile=tools/.pylintrc"]
files: ^tools/