Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd43055d

Browse files
committed
tox env to easily run flake8
Most people know about pep8 which enforce coding style. pyflakes goes astep beyond by analyzing the code.flake8 is basically a wrapper around both pep8 and pyflakes and comeswith some additional checks. I find it very useful since you only needto require one package to have a lot of code issues reported to you.This patch provides a 'flake8' tox environement to easily install andrun the utility on the code base. One simply has to: tox -eflake8The env has been added to the default list of environement to haveflake8 run by default.The repository in its current state does not pass checks but I noticed apull request fixing pep8 issues. We can later easily ensure there is noregression by adjusting Travis configuration to run this env.More informations about flake8:https://pypi.python.org/pypi/flake8
1 parent2ddd5e5 commitd43055d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Remember to update README.md
22
coverage
3+
flake8
34
nose
45
mock

‎tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26,py27
2+
envlist = py26,py27,flake8
33

44
[testenv]
55
commands = nosetests
@@ -9,5 +9,12 @@ deps = -r{toxinidir}/requirements.txt
99
[testenv:cover]
1010
commands = nosetests --with-coverage
1111

12+
[testenv:flake8]
13+
commands = flake8
14+
1215
[testenv:venv]
1316
commands = {posargs}
17+
18+
[flake8]
19+
#show-source = True
20+
exclude = .tox,.venv,build,dist,doc,git/ext/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp