summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2021-02-18 16:10:39 -0500
committerGitHub <noreply@github.com>2021-02-18 21:10:39 +0000
commit7f81392b306defda822bf8835cf59e207aad1af7 (patch)
treeb1781551aa70173b39650811787d514a1bf67e1d
parentb739944aabe5d3c287a89544fc365382d2719070 (diff)
downloadvyos-ansible-collection-7f81392b306defda822bf8835cf59e207aad1af7.tar.gz
vyos-ansible-collection-7f81392b306defda822bf8835cf59e207aad1af7.zip
Add pre-commit config file (#116)
Add pre-commit config file Reviewed-by: https://github.com/apps/ansible-zuul
-rw-r--r--.pre-commit-config.yaml21
1 files changed, 21 insertions, 0 deletions
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