Skip to content

Commit

Permalink
flake8: Put configuration into standardized place (spotify#1974)
Browse files Browse the repository at this point in the history
As I found described here:
http://flake8.pycqa.org/en/latest/user/configuration.html

My motivation for doing this was that I always get 100 warnings in vim
when I save my file.  As this follows the standardized way, I hope
anything can without effort ripe the benefits.

I tested the autolinting functionality I have in vim (syntastic?) as
well as running the -e flake8 using tox.
  • Loading branch information
Tarrasch authored and kreczko committed Mar 28, 2017
1 parent f7a5033 commit 88a10f3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,16 @@ commands =
python --version
nosetests -v --tests=test/visualiser

# Flake8 Configuration, inspired from https://gitlab.com/pycqa/flake8/blob/master/tox.ini
# By putting it here, local flake8 runs will also pick it up.
[flake8]
max-line-length=160

[testenv:flake8]
deps = flake8>=3.2.0
commands = flake8 --max-line-length=160 --exclude=doc,luigi/six.py,.tox
deps =
flake8>=3.2.0
commands =
flake8 --exclude=doc,luigi/six.py,.tox
flake8 --max-line-length=100 --ignore=E265 doc

[testenv:autopep8]
Expand Down

0 comments on commit 88a10f3

Please sign in to comment.