-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
38 lines (37 loc) · 1.29 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
---
repos:
- repo: https://gitlab.corp.redhat.com/infosec-public/developer-workbench/tools.git
rev: rh-pre-commit-2.2.0
hooks:
# If you have not run this hook on your system before, it may prompt you to
# log in for patterns, and you will need to try again.
#
# Docs: https://source.redhat.com/departments/it/it-information-security/leaktk/leaktk_components/rh_pre_commit
- id: rh-pre-commit
# - id: rh-pre-commit.commit-msg # Optional for commit-msg attestation
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-yaml
exclude: _template.yaml$
args:
- --allow-multiple-documents
- id: trailing-whitespace
exclude: benchmark_runner/grafana/perf/jsonnet/main.libsonnet$
args:
- --markdown-linebreak-ext=md
- id: check-added-large-files
- id: end-of-file-fixer
- id: check-json
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args:
- --fix=lf
- id: requirements-txt-fixer
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: detect-aws-credentials