Skip to content

Commit

Permalink
Applies pycodestyle instead of pep8.
Browse files Browse the repository at this point in the history
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed Jun 7, 2016
1 parent 69615e4 commit ef1b457
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 0 additions & 4 deletions bootstrap_py/templates/pytest.ini.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
[pytest]
addopts =
-v
--pep8
--flakes
--random
--cov {{ module_name }}
--cov-report=term
--cov-report=html
--doctest-modules
pep8ignore =
setup.py ALL
docs/source/conf.py ALL
flakes-ignore =
docs/source/conf.py ALL
1 change: 1 addition & 0 deletions bootstrap_py/templates/setup.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ from setuptools.command.test import test as TestCommand
{% endif -%}



class Tox(TestCommand):
user_options = [('tox-args=', 'a', 'Arguments to pass to tox')]

Expand Down
14 changes: 13 additions & 1 deletion bootstrap_py/templates/tox.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
py34,
py35,
pypy,
pycodestyle
pep257,
docs,
pychecker
Expand All @@ -15,12 +16,16 @@ commands =
[py]
deps=
pytest-cov
pytest-pep8
pytest-flakes
pytest-pylint
pytest-random
pytest-remove-stale-bytecode

[pep8]
show-source=True
statistics=True
exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,setup.py,docs

[testenv:py27]
deps=
{[py]deps}
Expand All @@ -46,6 +51,13 @@ deps=
{[py]deps}
basepython = pypy

[testenv:pycodestyle]
deps=
{[py]deps}
pycodestyle
basepython = python3.5
commands = pycodestyle --first

[testenv:pep257]
deps=
pep257
Expand Down

0 comments on commit ef1b457

Please sign in to comment.