Add coala linting to tox 13/49313/7
authorsrisankethu <sanketh.uppalapati@research.iiit.ac.in>
Tue, 13 Dec 2016 17:58:44 +0000 (23:28 +0530)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 24 Mar 2017 18:05:27 +0000 (18:05 +0000)
Ignore most checks for now. Will enable as things are fixed.

Change-Id: I2b9bd627277ef04e6d2f72d07072c5448f1d3271
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
.coafile
package.json [new file with mode: 0644]
tox.ini

index fb1179fdc444b0cc1d7f9074473ef535a75e039d..7b9d4b67ae0cd21973d7284113cef75fb6681129 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -4,38 +4,39 @@ use_spaces = True
 
 [DOCS]
 bears = SpaceConsistencyBear, LineLengthBear
-files = ./**/*.rst
+#files = ./**/*.rst
 default_actions = SpaceConsistencyBear: ApplyPatchAction
 
 [markdown]
 bears = MarkdownBear
-files = ./**/*.markdown, ./**/*.md
+#files = ./**/*.markdown, ./**/*.md
 default_actions = MarkdownBear: ApplyPatchAction
 
 [dockerfile]
 bears = DockerfileLintBear
-files = ./**/Dockerfile
+#files = ./**/Dockerfile
 
 [json]
 bears = JSONFormatBear
-files = ./**/*.json
+#files = ./**/*.json
 default_actions = JSONFormatBear: ApplyPatchAction
 
 [shellcheck]
 bears = ShellCheckBear
-files = ./**/*.sh
+#files = ./**/*.sh
 
 [python]
 bears = PyUnusedCodeBear
 files = ./**/*.py
+ignore = docs/conf.py, .*/**
 default_actions = PyUnusedCodeBear: ApplyPatchAction
 
 [autopep8]
 bears = PEP8Bear
-files = ./**/*.py
+#files = ./**/*.py
 default_actions = PEP8Bear: ApplyPatchAction
 
 [yaml]
 bears = YAMLLintBear
 yamllint_config = .yamllint
-files = ./**/*yaml, ./**/*.yml
+#files = ./**/*yaml, ./**/*.yml
diff --git a/package.json b/package.json
new file mode 100644 (file)
index 0000000..0274353
--- /dev/null
@@ -0,0 +1,7 @@
+{
+  "name": "packaging",
+  "dependencies": {
+    "remark-cli": "~2",
+    "dockerfile_lint": "~0"
+  }
+}
diff --git a/tox.ini b/tox.ini
index 723d1128a07f6bb1862657ff2b044ee1281b08cc..41ceba6c7d9749fa07977653732997cbb5004f3a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,29 +1,19 @@
 [tox]
 minversion = 1.6.0
-envlist = docs,pep8
+envlist = docs,coala
 skipsdist = true
 
+[testenv:coala]
+basepython = python3
+deps =
+    coala
+    coala-bears
+    nodeenv
+commands =
+    nodeenv -p
+    npm install
+    coala --non-interactive
+
 [testenv:docs]
 deps = sphinx
 commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
-
-[testenv:pep8]
-deps = flake8
-commands = flake8
-
-[flake8]
-show-source = True
-show-pep8 = True
-statistics = True
-max-line-length = 100
-verbose = 1
-exclude =
-    docs,
-    .git,
-    __pycache__,
-    .vagrant,
-    .tox,
-    .tmp,
-    modules,
-    .librarian,
-    provisioning