Hashar has uploaded a new change for review.

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

Change subject: Tox configuration to run flake8 (python linter)
......................................................................

Tox configuration to run flake8 (python linter)

Add a few files to use tox (virtualenv wrapper) and setup a flake8 env
to run python linting.

This will let me add a flake8 Jenkins job to the repository.

https://www.mediawiki.org/wiki/Continuous_integration/Tutorials/Test_your_python

Change-Id: I9333f9ebc436a3b2ad8612b31f18b0fa72ec32c6
---
M .gitignore
A setup.cfg
A tox.ini
3 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/wp-zero 
refs/changes/14/134314/1

diff --git a/.gitignore b/.gitignore
index c7b3665..e91ab60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/.tox
 deploy_key*
 *.pyc
 *.tsv
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..7065960
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,4 @@
+[flake8]
+; E501 line too long (X > 79 characters)
+ignore = E501
+exclude = .tox,.git
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..9e7d8a7
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,8 @@
+[tox]
+minversion = 1.6
+skipsdist = True
+envlist = flake8
+
+[testenv:flake8]
+commands = flake8 {posargs}
+deps = flake8

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9333f9ebc436a3b2ad8612b31f18b0fa72ec32c6
Gerrit-PatchSet: 1
Gerrit-Project: analytics/wp-zero
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to