Skip to content

Commit

Permalink
chore: pre-commit support
Browse files Browse the repository at this point in the history
  • Loading branch information
joke committed Feb 19, 2022
1 parent 004a9a3 commit e1afab8
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 42 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/lint.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:
push:
branches:
- master

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: asdf-vm/actions/install@v1
- uses: pre-commit/[email protected]
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: shellcheck
- id: shfmt
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
- id: pretty-format-yaml
args:
- --autofix
- --indent
- '2'
4 changes: 0 additions & 4 deletions scripts/shellcheck.bash

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/shfmt.bash

This file was deleted.

0 comments on commit e1afab8

Please sign in to comment.