Skip to content

Commit

Permalink
add a simple pre commit file to allow syntax checks of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 19, 2024
1 parent 1073260 commit 7705f6f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
name: check for added large files
description: prevents giant files from being committed.
entry: check-added-large-files
language: python
stages: [commit, push, manual]
exclude: ^tx

- repo: local
hooks:
- id: actionlint
name: actionlint
entry: actionlint
language: golang
additional_dependencies:
[github.com/rhysd/actionlint/cmd/[email protected]]
types: [yaml]
files: '^.github/workflows/'

##########
# pre-commit-ci config

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

0 comments on commit 7705f6f

Please sign in to comment.