Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (47 loc) · 1.79 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
47 lines (47 loc) · 1.79 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
# Checks run on commit (`pre-commit install`) and in CI (`pre-commit run
# --all-files`, plus the manual-stage `gitleaks-all` hook); hook versions are
# pinned to commits
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
# The Kubernetes manifests of the end-to-end tests hold several objects
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: c0f278f1254ccc8fb09676bcdb8d847e7db493e5 # frozen: v0.17.4
hooks:
- id: ruff-check
- id: ruff-format
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
hooks:
# Staged changes on commit
- id: gitleaks
# The whole checkout, in CI (`--hook-stage manual`); also scans
# untracked and ignored files when run locally
- id: gitleaks
alias: gitleaks-all
name: Detect hardcoded secrets (all files)
entry: gitleaks dir --redact --verbose
stages: [manual]
- repo: https://github.com/rhysd/actionlint
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
hooks:
# Workflows (`.github/workflows/`); also checks their scripts with
# shellcheck if it is installed (as on GitHub-hosted runners)
- id: actionlint
- repo: local
hooks:
# Uses the installed dev dependencies (the `dev` extra of
# `pyproject.toml`), as mypy needs them to check imported packages
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
pass_filenames: false