Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Added flake8 section to tox.ini, made flake8 pass after merging upstr…
Browse files Browse the repository at this point in the history
…eam.
  • Loading branch information
rockdog committed Feb 27, 2015
1 parent 9e02986 commit 3a301ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
args: ['-i', '--ignore=E265,E309,E501']
- id: check-yaml
- id: debug-statements
- id: name-tests-test
files: ^pushmanager/tests/.+\.py$
- id: flake8
- id: requirements-txt-fixer
2 changes: 1 addition & 1 deletion pushmanager/tests/test_servlet_newpush.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def on_db_return(success, db_results):

with nested(
mock.patch.dict(db.Settings, MockedSettings),
mock.patch.object(NewPushServlet, "get_current_user", return_value = "jblack"),
mock.patch.object(NewPushServlet, "get_current_user", return_value="jblack"),
mock.patch.object(NewPushServlet, "redirect"),
mock.patch.object(MailQueue, "enqueue_user_email"),
):
Expand Down
16 changes: 9 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ commands =
pyflakes pushmanager
pyflakes pushmanager/tests
pyflakes setup.py
flake8 --max-line-length=120 pushmanager
flake8 --max-line-length=120 pushmanager/tests
flake8 --max-line-length=120 setup.py
flake8 pushmanager
flake8 pushmanager/tests
flake8 setup.py

[testenv:lint]
deps = {[testenv]deps}
Expand All @@ -36,14 +36,16 @@ deps = {[testenv]deps}
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html


[testenv:devenv]
envdir = virtualenv_run
commands =

[testenv:flake8]
deps = flake8
commands =
flake8 --max-line-length=120 pushmanager
flake8 --max-line-length=120 pushmanager/tests
flake8 --max-line-length=120 setup.py
flake8 pushmanager
flake8 pushmanager/tests
flake8 setup.py

[flake8]
max-line-length = 120

0 comments on commit 3a301ca

Please sign in to comment.