-
Notifications
You must be signed in to change notification settings - Fork 113
/
.pre-commit-config.yaml
73 lines (66 loc) · 2.07 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
#
# Author: Hari Sekhon
# Date: 2024-08-08 17:34:56 +0300 (Thu, 08 Aug 2024)
#
# vim:ts=2:sts=2:sw=2:et
#
# https///github.com/HariSekhon/SQL-scripts
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# P r e - C o m m i t
# ============================================================================ #
---
fail_fast: false
#exclude: *.tmp$
repos:
# will accept anything that 'git clone' understands
# this means you can set this to a local git repo to develop your own hook repos interactively
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
# Common errors
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
# Git style
- id: check-added-large-files
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: forbid-new-submodules
# Cross platform
- id: check-case-conflict
- id: mixed-line-ending
args: [--fix=lf]
# Security
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
# Git secrets Leaks
- repo: https://github.com/awslabs/git-secrets.git
# the release tags for 1.2.0, 1.2.1 and 1.3.0 are broken with this error:
#
# /Users/hari/.cache/pre-commit/repo......./.pre-commit-hooks.yaml is not a file
#
rev: 5357e18
hooks:
- id: git-secrets
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint
name: Markdownlint
description: Run markdownlint on your Markdown files
entry: mdl
args: [-s, .mdl.rb]
language: ruby
files: \.(md|mdown|markdown)$