Smalyshev has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/251302

Change subject: Add configs for syntax checker
......................................................................

Add configs for syntax checker

Change-Id: Idadec18c0560090ec0f059c62da75461e9a5ae51
---
A setup.cfg
A tox.ini
2 files changed, 25 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/relevancylab 
refs/changes/02/251302/1

diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..df07bdd
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+# configuration for flake8
+[flake8]
+# Raise the default 79 limit
+max-line-length = 100
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..32bfeda
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,21 @@
+# Tox configuration
+[tox]
+minversion = 1.6
+skipsdist = True
+# List the environment that will be run by default
+envlist = flake8, py26, py27
+
+[testenv]
+# Default configuration. py26 and py27 will end up using this
+setenv = VIRTUAL_ENV={envdir}
+
+# Settings specific to the flake8 environment
+[testenv:flake8]
+# The command to run:
+commands = flake8
+# We only need flake8 when linting, we do not care about the project 
dependencies
+deps = flake8
+
+[testenv:venv]
+# Let you pass additional arguments when invoking tox
+commands = {posargs}

-- 
To view, visit https://gerrit.wikimedia.org/r/251302
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idadec18c0560090ec0f059c62da75461e9a5ae51
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/relevancylab
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to