-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (49 loc) · 1.66 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
exclude: |
(?x)^(
files/.config/lazygit/config.yml|
files/.config/nvim/pack.*|
files/.oh-my-zsh/.*|
files/.tmux/plugins/.*|
files/.zshenv|
files/bin/dropbox_uploader.sh|
files/bin/ftwind|
files/bin/run-forever.sh|
files/bin/try|
files/bin/vimv|
files/condarc|
files/zsh-custom/.*
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-added-large-files # Prevent giant files from being committed
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
- id: check-executables-have-shebangs # Ensures that (non-binary) executables have a shebang.
- id: check-json # This hook checks json files for parseable syntax.
- id: check-yaml # This hook checks yaml files for parseable syntax.
- id: end-of-file-fixer # Ensures that a file is either empty, or ends with one newline.
- id: trailing-whitespace # This hook trims trailing whitespace.
- repo: https://github.com/AleksaC/circleci-cli-py
rev: v0.1.16535
hooks:
- id: circle-ci-validator
files: \.circleci/.*\.yml$
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier
language: system
args: [--write]
files: \.(js|ts|jsx|tsx|css|less|html|json|markdown|md|yaml|yml)$
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: "2.1.5"
hooks:
- id: shellcheck
- id: shfmt
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.10.2
hooks:
- id: check-github-actions
- id: check-github-workflows