From 16e746be5eeff6b9d1c7aa7cb4f6e76319e3e6d9 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Tue, 18 Jun 2013 20:47:18 +0100 Subject: [PATCH] tox: Add pep8 and flake8 configuration in tox.ini This helps ensuring everyone uses the code checkers with the same configuration. Initial values based on earlier discussion. The max-line-length is currently just based on the screen width I have on my netbook. --- tox.ini | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tox.ini b/tox.ini index 73840a0..d4c505a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,3 +1,15 @@ +# The flake8 and pep8 sections just contain configuration for corresponding tools. +# Checkers are not run implicitly. +[flake8] +exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv* +ignore = E261 +max-line-length = 101 + +[pep8] +exclude = *.egg*,.env,.git,.hg,.tox,_*,build*,dist*,venv* +ignore = E261 +max-line-length = 101 + [tox] envlist = py25selects,py25poll,py26selects,py26poll,py26epolls,py27selects,py27poll,py27epolls