Skip to content

Commit dfae161

Browse files
committed
Add a config for pre-commit.ci
1 parent b3f93a1 commit dfae161

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.pre-commit-config.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
ci:
3+
autoupdate_schedule: quarterly
4+
5+
repos:
6+
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
7+
rev: v1.3.1
8+
hooks:
9+
- id: remove-tabs
10+
11+
- repo: https://github.com/python-jsonschema/check-jsonschema.git
12+
rev: 0.18.3
13+
hooks:
14+
- id: check-github-workflows
15+
- id: check-jsonschema
16+
name: Check GitHub Workflows set timeout-minutes
17+
args:
18+
- --builtin-schema
19+
- github-workflows-require-timeout
20+
files: ^\.github/workflows/[^/]+$
21+
types:
22+
- yaml
23+
- id: check-readthedocs
24+
25+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
26+
rev: v4.3.0
27+
hooks:
28+
# Side-effects:
29+
- id: end-of-file-fixer
30+
- id: trailing-whitespace
31+
- id: mixed-line-ending
32+
# Non-modifying checks:
33+
- id: check-added-large-files
34+
- id: check-byte-order-marker
35+
- id: check-case-conflict
36+
- id: check-executables-have-shebangs
37+
- id: check-merge-conflict
38+
- id: check-json
39+
- id: check-symlinks
40+
- id: check-yaml
41+
- id: detect-private-key
42+
43+
- repo: https://github.com/codespell-project/codespell
44+
rev: v2.2.1
45+
hooks:
46+
- id: codespell
47+
48+
- repo: https://github.com/adrienverge/yamllint.git
49+
rev: v1.28.0
50+
hooks:
51+
- id: yamllint
52+
files: \.(yaml|yml)$
53+
types:
54+
- file
55+
- yaml
56+
args:
57+
- --strict
58+
59+
...

0 commit comments

Comments
 (0)