-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will prevent secrets from being committed to the repository. Handling it in pre-commit because a check in actions is too late.
- Loading branch information
1 parent
5b7f1cb
commit 1ce733f
Showing
1 changed file
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# configuration for pre-commit git hooks | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: tests/foreman/data/ | ||
- id: check-yaml | ||
- id: debug-statements | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.277 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- repo: local | ||
hooks: | ||
- id: fix-uuids | ||
name: Robottelo Custom Fix UUIDs script | ||
description: This hook runs the scripts/fix_uuids.sh script | ||
language: script | ||
entry: scripts/fix_uuids.sh | ||
verbose: true | ||
types: [text] | ||
require_serial: true | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: tests/foreman/data/ | ||
- id: check-yaml | ||
- id: debug-statements | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.277 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- repo: local | ||
hooks: | ||
- id: fix-uuids | ||
name: Robottelo Custom Fix UUIDs script | ||
description: This hook runs the scripts/fix_uuids.sh script | ||
language: script | ||
entry: scripts/fix_uuids.sh | ||
verbose: true | ||
types: [text] | ||
require_serial: true | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.0 | ||
hooks: | ||
- id: gitleaks |