Skip to content

Commit

Permalink
also run flake8 under Tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Oct 1, 2016
1 parent 32cdb39 commit c763080
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E127,E226,E301,E302,E303,E309,E402,E701,E711,E712,E731
max_line_length = 120
show_source = True
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pip := pip --disable-pip-version-check
with_local_env := $(env_bin)/honcho run -e defaults.env,local.env
with_tests_env := $(env_bin)/honcho run -e $(test_env_files)
py_test := $(with_tests_env) $(env_bin)/py.test
pep8_ignore = E127,E226,E301,E302,E303,E309,E402,E701,E711,E712,E731

echo:
@echo $($(var))
Expand Down Expand Up @@ -55,7 +54,7 @@ test-schema: env
$(with_tests_env) ./recreate-schema.sh test

pyflakes: env
$(env_bin)/flake8 --max-line-length=120 --show-source --ignore=$(pep8_ignore) app.py liberapay tests
$(env_bin)/flake8 app.py liberapay tests

test: test-schema pytest
tests: test
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ skipsdist = True
[testenv]
commands =
honcho run -e defaults.env,tests/test.env,tests/local.env python -m pytest tests/py {posargs}
flake8 app.py liberapay tests
deps =
--requirement=requirements.txt
--requirement=requirements_dev.txt
Expand Down

0 comments on commit c763080

Please sign in to comment.