aboutsummaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-10-04 13:55:30 +0000
committerGerrit Code Review <gerrit@onap.org>2021-10-04 13:55:30 +0000
commit86bd887da34ed388c648d1756258421da05b786a (patch)
treeef9257094dae6283976724e39ecb5c17176aeb5b /.pre-commit-config.yaml
parent23c1fc145b00853fa6b0a87c42e494549c9e4ee8 (diff)
parent30ec390479c9b7eeeaa90f036be02162c29ae918 (diff)
Merge "[COMMON] Add and run pre-commit linters via tox"
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000000..6bfce7af6c
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,18 @@
+---
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.0.1
+ hooks:
+ - id: trailing-whitespace
+ #exclude: '^ordmodels/'
+ - repo: https://github.com/jorisroovers/gitlint
+ rev: v0.15.1
+ hooks:
+ - id: gitlint
+ stages: [commit-msg]
+ - repo: https://github.com/Lucas-C/pre-commit-hooks
+ rev: v1.1.10
+ hooks:
+ - id: remove-tabs
+ stages: [commit]
+ exclude: '^(.git/|docs/make.bat|.*/Makefile$)'