-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
48 lines (44 loc) · 1.08 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
default_install_hook_types:
- commit-msg
- pre-commit
- pre-push
exclude: "docs/src/.*"
repos:
- hooks:
- id: check-added-large-files
# - id: trailing-whitespace
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-symlinks
# - id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
# - id: end-of-file-fixer
- id: fix-encoding-pragma
- id: trailing-whitespace
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
#- hooks:
# - id: markdownlint
# repo: https://github.com/markdownlint/markdownlint
# rev: v0.12.0
- hooks:
- id: commitizen
repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.0
#- hooks:
# - id: autopep8
# repo: https://github.com/pre-commit/mirrors-autopep8
# rev: v2.0.0
- repo: https://github.com/adamchainz/blacken-docs
rev: "v1.12.1" # replace with latest tag on GitHub
hooks:
- id: blacken-docs
additional_dependencies:
- black==22.12.0
- hooks:
- id: flake8
repo: https://github.com/PyCQA/flake8
rev: 5.0.4