Skip to content

Commit

Permalink
Added pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
nowathom committed Jun 25, 2024
1 parent 565c09a commit fe95250
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.1
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
# Choose one of:
- id: shfmt # prebuilt upstream executable
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
2 changes: 1 addition & 1 deletion muxtab.tmux
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!/usr/bin/env sh
#!/bin/sh

0 comments on commit fe95250

Please sign in to comment.