Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
- name: Run Check
uses: pre-commit/action@v3.0.0
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
extra_args: >-
--files ${{ steps.changed-files.outputs.all_changed_files }}
--hook-stage manual

- name: Checks failed, notification
if: failure()
run: |
Expand Down
45 changes: 40 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,50 @@
---
default_install_hook_types:
- pre-commit
- commit-msg

repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages:
- commit-msg
args:
- "--strict"
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
stages:
- commit-msg
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
stages:
- commit-msg
- id: trailing-whitespace
stages:
- commit-msg
- id: mixed-line-ending
stages:
- commit-msg
- id: check-byte-order-marker
stages:
- commit-msg
- id: check-executables-have-shebangs
stages:
- commit-msg
- id: check-merge-conflict
stages:
- commit-msg
- id: check-symlinks
stages:
- commit-msg
- id: check-yaml
stages:
- commit-msg
files: .*\.(yaml|yml)$
args:
- "--allow-multiple-documents"
Expand All @@ -20,10 +54,14 @@ repos:
rev: 24.1.1
hooks:
- id: black
stages:
- manual
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
stages:
- manual
args:
- >-
-d {extends: default, rules: {line-length: disable},
Expand All @@ -32,10 +70,7 @@ repos:
rev: v6.22.2
hooks:
- id: ansible-lint
stages:
- manual
additional_dependencies:
- ansible
- yamllint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
Loading