From 7f81392b306defda822bf8835cf59e207aad1af7 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Thu, 18 Feb 2021 16:10:39 -0500 Subject: Add pre-commit config file (#116) Add pre-commit config file Reviewed-by: https://github.com/apps/ansible-zuul --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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..19bc9e0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.1.0 + hooks: + - id: check-merge-conflict + - id: check-symlinks + - id: debug-statements + - id: end-of-file-fixer + - id: no-commit-to-branch + args: [--branch, main] + - id: trailing-whitespace + - repo: https://github.com/psf/black + rev: 19.3b0 + hooks: + - id: black + args: [-l, "79"] + - repo: https://github.com/ansible-network/collection_prep + rev: 0.9.1 + hooks: + - id: update-docs -- cgit v1.2.3