This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
.pre-commit-config.yaml
96 lines (96 loc) · 2.52 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
91
92
93
94
95
96
---
repos:
- repo: local
hooks:
- name: rebuild schemas
id: rebuild
language: python
pass_filenames: false
always_run: true
entry: python src/rebuild.py
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.3.0
hooks:
- id: end-of-file-fixer
exclude: >
(?x)^(
data/.*
)$
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.14.1
hooks:
- id: cspell
# entry: codespell --relative
args: [--relative, --no-progress, --no-summary]
name: Spell check with cspell
exclude: >
(?x)^(
(negative_test|test)/.*\.md
)$
- repo: https://github.com/pre-commit/mirrors-prettier
# keep it before markdownlint and eslint
rev: "v3.0.0-alpha.4"
hooks:
- id: prettier
exclude: >
(?x)^(
(negative_test|test)/.*\.md|
f/ansible-(tasks|playbook).json|
data/.*
)$
always_run: true
additional_dependencies:
- prettier
- prettier-plugin-sort-json
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
- id: markdownlint
exclude: >
(?x)^(
(negative_test|test)/.*\.md
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
entry: codespell --ignore-words=.config/dictionary.txt
exclude: >
(?x)^(
data/.*|
package-lock.json
)$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8.git
rev: 5.0.4
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
args: [--strict]
# additional_dependencies:
- repo: https://github.com/pycqa/pylint
rev: v2.15.6
hooks:
- id: pylint
# additional_dependencies: