Skip to content

Commit

Permalink
chore: update pre-commit hooks (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlopes authored Dec 31, 2024
1 parent 7a1e52c commit 81de865
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr-pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR
on:
pull_request:
types: [opened, reopened, edited, labeled, unlabeled, synchronize]

concurrency:
group: pr-pre-commit-check-${{ github.ref }}
cancel-in-progress: true

permissions:
statuses: write
contents: read
checks: write
pull-requests: read

jobs:
pre_commmit:
name: Pre-commit
uses: dnlopes/Reusable.Workflows/.github/workflows/pre-commit-hooks.yaml@v1
secrets: inherit
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-vcs-permalinks

0 comments on commit 81de865

Please sign in to comment.