Skip to content

Commit

Permalink
refactor: use pre-commit to check for keys instead of talisman
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Aug 1, 2023
1 parent f56c424 commit c25b059
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 48 deletions.
11 changes: 0 additions & 11 deletions .hook/check-talisman-files.sh

This file was deleted.

3 changes: 0 additions & 3 deletions .hook/sort-talismanrc.sh

This file was deleted.

40 changes: 6 additions & 34 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/thoughtworks/talisman
rev: 'v1.30.2'
hooks:
- id: talisman-commit
entry: cmd --githook pre-commit
- repo: local
hooks:
- id: sort-talismanrc
name: Sort .talismanrc
language: script
files: '.talismanrc'
entry: .hook/sort-talismanrc.sh
- id: check-talisman-files
name: Check files in .talismanrc
language: script
files: '.talismanrc'
entry: .hook/check-talisman-files.sh
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 'v2.3.0'
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: ['feat', 'fix', 'ci', 'chore', 'test', 'docs', 'refactor']
- repo: https://github.com/tekwizely/pre-commit-golang
rev: 'v1.0.0-rc.1'
hooks:
- id: go-mod-tidy
- id: go-vet-mod
- id: go-fmt
- id: go-staticcheck-mod
- id: go-sec-mod
- id: go-build-mod
- id: go-test-mod
- id: go-sec-mod
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: detect-private-key

0 comments on commit c25b059

Please sign in to comment.