From 45950c4c1477153a128ddf6cc3ada46214a3e081 Mon Sep 17 00:00:00 2001 From: Sam McHardy Date: Tue, 23 Jan 2018 20:48:22 +1100 Subject: [PATCH] Validate setup.py and examples with flake8 --- examples/save_historical_data.py | 2 +- setup.py | 24 ++++++++++++------------ tox.ini | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/save_historical_data.py b/examples/save_historical_data.py index 78822f972..c5aebecd8 100644 --- a/examples/save_historical_data.py +++ b/examples/save_historical_data.py @@ -151,6 +151,6 @@ def get_historical_klines(symbol, interval, start_str, end_str=None): date_to_milliseconds(start), date_to_milliseconds(end) ), - 'w' # set file write mode + 'w' # set file write mode ) as f: f.write(json.dumps(klines)) diff --git a/setup.py b/setup.py index 7d3742bcb..cb0d1c0e2 100644 --- a/setup.py +++ b/setup.py @@ -13,17 +13,17 @@ install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity', 'dateparser', 'urllib3', 'chardet', 'certifi', 'cryptography', ], keywords='binance exchange rest api bitcoin ethereum btc eth neo', classifiers=[ - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python', - 'Topic :: Software Development :: Libraries :: Python Modules', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', ], ) diff --git a/tox.ini b/tox.ini index f26089b8b..2fa52cc34 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ passenv = TRAVIS_JOB_ID [testenv:flake8] -commands = flake8 binance/ +commands = flake8 binance/ setup.py examples/ deps = flake8 [travis]