-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
88 lines (78 loc) · 2.12 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
88 lines (78 loc) · 2.12 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# See https://pre-commit.com for more information
default_language_version:
python: python3.11
repos:
# Python Code Quality - Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
# Security - Bandit
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [-c, audit/configs/bandit.yaml]
exclude: tests/
# Dependencies - pip-compile
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
- id: pip-compile
name: pip-compile requirements.in
files: ^requirements\.(in|txt)$
- id: pip-compile
name: pip-compile requirements-dev.in
args: [requirements-dev.in]
files: ^requirements-dev\.(in|txt)$
# Dead Code Detection
- repo: https://github.com/jendrikseipp/vulture
rev: v2.10
hooks:
- id: vulture
args: [--min-confidence, "80"]
# CloudFormation Security
- repo: https://github.com/stelligent/cfn_nag
rev: v0.8.10
hooks:
- id: cfn-nag
files: \.(json|yml|yaml|template)$
exclude: ^(?!.*cloudformation).*$
# Terraform Security
- repo: https://github.com/aquasecurity/tfsec
rev: v1.28.1
hooks:
- id: tfsec
files: \.tf$
# Documentation
- repo: https://github.com/errata-ai/vale
rev: v2.29.0
hooks:
- id: vale
files: \.(md|rst|txt)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
args: [--config, .markdownlint.yml]
# Secret Detection
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
# General
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-case-conflict
- id: check-merge-conflict
- id: mixed-line-ending