-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (43 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (43 loc) · 1.34 KB
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
repos:
# ==========================================
# Pre-commit default hooks
# ==========================================
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-vcs-permalinks
- id: check-symlinks
- id: destroyed-symlinks
- id: pretty-format-json
# ==========================================
# Codespell
# ==========================================
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
files: ^.*\.(py|c|h|md|rst|yml|go|sh|sql|tf|yaml)$
args: ["--ignore-words-list", "hist,nd,bu,gir,maks"]
# ==========================================
# Gitleaks
# ==========================================
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.0
hooks:
- id: gitleaks
args: ["detect", "--verbose"]
# ==========================================
# FIXED STYLELINT HOOK (No nodeenv)
# ==========================================
- repo: local
hooks:
- id: stylelint
name: stylelint
entry: npx stylelint --fix
language: system
types: [css, scss]
exclude: "node_modules/|dist/|build/"