Move away from coala since that project refuses to produce any
new release and the version we're using is quite dated at this
point.
Coala does not seem to be working well with prettier pre-commit
hook in place, since prettier is auto-formating the yaml code
to make the code terse which fails the tox verify job.
Issue: RELENG-2641
Change-Id: I8d782822ca87add9108a044fd6e19b1c23686717
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
+++ /dev/null
-[all]
-ignore = .tox/**,
- .git/**,
- .gitignore,
- .gitreview,
- .gitmodules,
- node_modules/**,
- **.sw?,
- **.orig
-
-[all.Documentation]
-bears = SpaceConsistencyBear,WriteGoodLintBear
-files = docs/**.rst
-use_spaces = true
-
-[all.GitCommit]
-bears = GitCommitBear
-ignore_length_regex = Signed-off-by,
- Also-by,
- Co-authored-by,
- http://,
- https://
-
-[JSON]
-bears = JSONFormatBear
-files = templates/**.json,
- vars/**.json
-indent_size = 2
-
-[all.ShellCheck]
-bears = ShellCheckBear, SpaceConsistencyBear, LineLengthBear
-files = provision/**.sh, ansible-galaxy.sh
-shell = bash
-indent_size = 4
-use_spaces = True
-max_line_length = 80
-
-[YAML]
-bears = YAMLLintBear
-files = provision/**.yaml
-document_start = True
-yamllint_config = .yamllint.conf
[tox]
minversion = 1.6
envlist =
- coala,
pre-commit
skipsdist = true
-[testenv:coala]
-basepython = python3
-deps =
- coala
- coala-bears
- pygments~=2.3.1
- # request-2.22.0 does not work with python-3.4.9
- requests~=2.21.0
- nodeenv==1.1.2
-commands =
- nodeenv -p
- npm install --global write-good
- python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
- coala --non-interactive
-
[testenv:docs]
basepython = python3
deps = -rdocs/requirements.txt