Considering that all we're using Coala for is for the GitCommitBear
let's drop Coala in favor of pre-commit as it's faster and more
convenient.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I852ced87ea859a4424e41d461e9adce01732b8ba
+++ /dev/null
-[all]
-ignore = .tox/**,
- .git/**,
- .gitignore,
- .gitmodules,
- .gitreview
-
-[all.Git]
-bears = GitCommitBear
-files = NONE
-ignore_length_regex = Signed-off-by,
- Also-by,
- Co-authored-by,
- http://,
- https://
-
--- /dev/null
+---
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v1.3.0
+ hooks:
+ - id: trailing-whitespace
+
+ - repo: https://github.com/jorisroovers/gitlint
+ rev: v0.11.0
+ hooks:
+ - id: gitlint
[tox]
minversion = 1.6
envlist =
- coala,
- molecule
+ molecule,
+ pre-commit
skipsdist=true
-[testenv:coala]
-basepython = python3
-deps =
- coala
- coala-bears
-commands =
- python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
- coala --non-interactive
-
[testenv:molecule]
basepython = python2
deps =
passenv = *
commands =
./molecule.sh
+
+[testenv:pre-commit]
+deps = pre-commit
+commands =
+ pre-commit install --hook-type commit-msg
+ pre-commit run --all-files
\ No newline at end of file