From e35a250f7b12e44b779d7ad9559dfce75497fa67 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Wed, 14 Jun 2023 21:07:48 -0400 Subject: [PATCH] Added pre-commit config --- .pre-commit-config.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..00a0a53 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,32 @@ +# 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.4.0 + hooks: + - id: check-added-large-files + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: no-commit-to-branch + args: [--branch, develop, --branch, master, --branch, main] + - id: trailing-whitespace + - repo: https://github.com/ansible-community/ansible-lint + rev: v6.17.1 + hooks: + - id: ansible-lint + - repo: https://github.com/psf/black + rev: 23.3.0 + hooks: + - id: black + language_version: python3 + - repo: https://github.com/PyCQA/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + - repo: https://github.com/adrienverge/yamllint + rev: v1.32.0 + hooks: + - id: yamllint