diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-17 16:25:27 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-17 16:25:27 -0500 |
| commit | 902a8b487cfdd5b9c4d01be6733bb1ec85403585 (patch) | |
| tree | e182b1fc14f6a80e4300655158612e8314b51bf5 | |
| parent | 3e73d2ddbb3916cb42f3d7c8c7ce17703b45c5ca (diff) | |
| download | platform_external_python_uritemplates-902a8b487cfdd5b9c4d01be6733bb1ec85403585.tar.gz platform_external_python_uritemplates-902a8b487cfdd5b9c4d01be6733bb1ec85403585.tar.bz2 platform_external_python_uritemplates-902a8b487cfdd5b9c4d01be6733bb1ec85403585.zip | |
Clean up for Flake8
| -rw-r--r-- | setup.py | 13 | ||||
| -rw-r--r-- | tests/test_from_fixtures.py | 3 | ||||
| -rw-r--r-- | tox.ini | 2 | ||||
| -rw-r--r-- | uritemplate/__init__.py | 2 |
4 files changed, 5 insertions, 15 deletions
@@ -1,18 +1,11 @@ -import sys -import os +from setuptools import setup + +from uritemplate import __version__ packages = [ 'uritemplate' ] -from setuptools import setup - -if sys.argv[-1] in ("submit", "publish"): - os.system("python setup.py sdist upload") - sys.exit() - -from uritemplate import __version__ - setup( name="uritemplate.py", version=__version__, diff --git a/tests/test_from_fixtures.py b/tests/test_from_fixtures.py index 55187e2..70d6553 100644 --- a/tests/test_from_fixtures.py +++ b/tests/test_from_fixtures.py @@ -1,8 +1,5 @@ import json import os.path -import sys - -import pytest import uritemplate @@ -17,7 +17,7 @@ commands = py.test {posargs} deps = flake8 commands = - flake8 {posargs} + flake8 {posargs} uritemplate tests setup.py [flake8] exclude = docs/ diff --git a/uritemplate/__init__.py b/uritemplate/__init__.py index d64865c..2d9dbeb 100644 --- a/uritemplate/__init__.py +++ b/uritemplate/__init__.py @@ -19,6 +19,6 @@ __copyright__ = 'Copyright 2013 Ian Cordasco' __version__ = '0.3.1' __version_info__ = tuple(int(i) for i in __version__.split('.')) -from uritemplate.api import URITemplate, expand, partial +from uritemplate.api import URITemplate, expand, partial # noqa: E402 __all__ = ('URITemplate', 'expand', 'partial') |
