Skip to content

Commit

Permalink
add precommit checks and black
Browse files Browse the repository at this point in the history
  • Loading branch information
youtous committed Dec 2, 2023
1 parent ab5d87d commit 4012b04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ repos:
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

- id: check-yaml
exclude: \.j2.(yaml|yml)$|\.(yaml|yml).j2$
args: [--unsafe] # see https://github.com/pre-commit/pre-commit-hooks/issues/273

- id: check-toml
- id: check-json
- id: check-symlinks

- repo: https://github.com/ansible/ansible-lint.git
# get latest release tag from https://github.com/ansible/ansible-lint/releases/
rev: v6.20.3
Expand All @@ -13,4 +22,8 @@ repos:
additional_dependencies:
- jmespath

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.11.0
hooks:
- id: black
...

0 comments on commit 4012b04

Please sign in to comment.