-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
90 lines (90 loc) · 2.44 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
90
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3
fail_fast: true
exclude: >
(?x)^(
packages/fasteners/.*|
packages/six/.*|
packages/termcolor/.*|
packages/texttable/.*|
packages/tinydb/.*|
packages/unidecode/.*
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
# - id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
# - id: name-tests-test
- id: pretty-format-json
- id: requirements-txt-fixer
- id: trailing-whitespace
# - repo: https://github.com/PyCQA/pylint
# rev: pylint-1.9.4
# hooks:
# - id: pylint
# language_version: python3
# - repo: https://github.com/asottile/dead
# rev: v1.4.0
# hooks:
# - id: dead
# language_version: python3
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: script-must-have-extension
types: [shell, non-executable]
- id: shellcheck
args: [--color=always, --check-sourced, --external-sources]
- id: shfmt
args: [-s, -sr, -w, -i, "2"]
- repo: https://github.com/codespell-project/codespell.git
rev: v2.0.0
hooks:
- id: codespell
args: [--check-filenames, --check-hidden, --write-changes, --ignore-words-list, 'iff,creat,inout']
# - repo: https://github.com/Lucas-C/pre-commit-hooks-markup
# rev: 54db9d2ed7d626fabb237c86c4f12b67a254ae97
# hooks:
# - id: rst-linter
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.8.0
hooks:
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: rst-backticks
# - id: text-unicode-replacement-char
- repo: https://github.com/igorshubovych/markdownlint-cli.git
rev: v0.27.1
hooks:
- id: markdownlint
args: [--fix]
- repo: https://github.com/asottile/pyupgrade
rev: v2.11.0
hooks:
- id: pyupgrade
language_version: python3
args: [--py36-plus]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.770
# hooks:
# - id: mypy
# language_version: python3
# exclude: 'examples/'