-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
73 lines (68 loc) · 2.06 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
repos:
# General checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- name: Prevent committing to main
id: no-commit-to-branch
args: [--branch, main]
- name: Make sure files end with a newline character
id: end-of-file-fixer
- name: Remove trailing whitespace
id: trailing-whitespace
- name: Check for files that would conflict on case-insensitive filesystem
id: check-case-conflict
- name: Check for merge conflicts
id: check-merge-conflict
- name: Check executable files have a shebang
id: check-executables-have-shebangs
- name: Check scripts with a shebang are executable
id: check-shebang-scripts-are-executable
- name: Don't allow adding large files
id: check-added-large-files
# Roc
- repo: https://github.com/hasnep/pre-commit-roc
rev: v0.1.0
hooks:
- name: Lint Roc files
id: check
args: [src/main.roc]
- name: Format Roc files
id: format
# YAML
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- name: Validate YAML
id: check-yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- name: Format YAML files
id: prettier
types: [yaml]
# Markdown
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- name: Format markdown files
id: prettier
types: [markdown]
# GitHub Actions
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.19.2
hooks:
- name: Validate GitHub Actions workflow files
id: check-github-workflows
# Pre-commit
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
hooks:
- name: Validate Pre-commit config
id: check-jsonschema
files: ^.*\.pre-commit-config.yaml$
args:
[
"--schemafile",
"https://json.schemastore.org/pre-commit-config.json",
]