mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-18 01:34:23 +00:00
chore: import notes from an old repository
This commit is contained in:
17
snippets/pre-commit.sh
Normal file
17
snippets/pre-commit.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
cat > .pre-commit-config.yaml <<-EOF
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- repo: https://github.com/ansible-community/ansible-lint
|
||||
rev: v5.2.1
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
EOF
|
||||
|
||||
pre-commit install
|
||||
Reference in New Issue
Block a user