Skip to content

Commit

Permalink
Merge pull request #36 from tdsmith/pep8
Browse files Browse the repository at this point in the history
Test for PEP8 compliance
  • Loading branch information
tdsmith authored Sep 15, 2016
2 parents 566fc36 + 0765cc7 commit 7849b36
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branches:
- /^v\d.*/
env:
- TOXENV=py2 PYTHON=python
- TOXENV=py2-flake8 PYTHON=python
- TOXENV=py3 PYTHON=python3

before_install:
Expand Down
2 changes: 2 additions & 0 deletions poet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

from .poet import *
from .lint import lint
from .version import __version__
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='homebrew-pypi-poet',
version=__version__,
version=__version__, # noqa
url='https://github.com/tdsmith/homebrew-pypi-poet',
license='MIT',
author='Tim D. Smith',
Expand All @@ -22,9 +22,9 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4'
],
install_requires = ['jinja2', 'setuptools', 'tl.eggdeps'],
entry_points = {'console_scripts': [
install_requires=['jinja2', 'setuptools', 'tl.eggdeps'],
entry_points={'console_scripts': [
'poet=poet:main',
'poet_lint=poet.lint:main'
'poet_lint=poet.lint:main',
]}
)
16 changes: 12 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
[tox]
envlist = py2, py3
envlist = py2, py3, py2-flake8

[testenv]
commands = py.test {posargs}
deps =
pytest
mock
testfixtures
pytest
mock
testfixtures
passenv =
HOME
POET_DEBUG
basepython =
py2: python2
py3: python3

[testenv:py2-flake8]
skip_install = True
commands = flake8 poet
deps = flake8

[flake8]
max-line-length = 120

0 comments on commit 7849b36

Please sign in to comment.