Skip to content

Commit

Permalink
Merge pull request #1750 from Giskard-AI/gg-shield
Browse files Browse the repository at this point in the history
Add ggshield to pre-commit
  • Loading branch information
andreybavt authored Jan 19, 2024
2 parents 7d20ea9 + 890a226 commit 01711ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
GSK_DISABLE_ANALYTICS: true
SENTRY_ENABLED: false
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
defaults:
run:
shell: bash
Expand Down
11 changes: 9 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ repos:
- "pyproject.toml"

- repo: https://github.com/ambv/black
rev: 23.11.0
rev: 23.12.1
hooks:
- id: black
files: '^.*\.py$'
args:
- "--config"
- "pyproject.toml"

stages: [commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
Expand All @@ -27,3 +27,10 @@ repos:
- "pyproject.toml"
- "--fix"
- "--exit-non-zero-on-fix"

- repo: https://github.com/gitguardian/ggshield
rev: v1.23.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]

0 comments on commit 01711ca

Please sign in to comment.