This repository was archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
89 lines (75 loc) · 2.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: mixed-line-ending
alias: check-line-endings
name: check-line-endings
args: ['--fix=no']
- repo: https://github.com/adrienverge/yamllint
rev: v1.29.0
hooks:
- id: yamllint
- repo: https://github.com/jmknoble/json-indent
rev: v2.6.4
hooks:
- id: json-indent
args: ['--newlines=linux']
- repo: https://github.com/jmknoble/markdown-toc
rev: v0.3.0
hooks:
- id: markdown-toc
args: ['--heading-level', '2', '--skip-level', '1']
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
args:
- '--application-directories=hooks'
- '--exclude=(docs?|examples?|tests?|utils?|\{\{cookiecutter\.[^}]*\}\})/.*\.py'
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
alias: black-check
name: black-check
args: ['--check']
stages: [manual]
- id: black
alias: black-diff
name: black-diff
args: ['--check', '--diff']
stages: [manual]
- id: black
alias: black-reformat
name: black-reformat
args: []
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/prospector
rev: v1.9.0
hooks:
- id: prospector
args: ['--profile=prospector_profile.yml']
# add any needed Python package requirements here
additional_dependencies:
- 'pytest>=4.6'
- 'argcomplete >= 1.12.3'
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
exclude: (__init__|setup|(docs?|examples?|tests?|utils?)/.*)\.py$
...