Skip to content

Commit

Permalink
Validate setup.py and examples with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
sammchardy committed Jan 23, 2018
1 parent eb237ec commit 45950c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/save_historical_data.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ def get_historical_klines(symbol, interval, start_str, end_str=None):
date_to_milliseconds(start), date_to_milliseconds(start),
date_to_milliseconds(end) date_to_milliseconds(end)
), ),
'w' # set file write mode 'w' # set file write mode
) as f: ) as f:
f.write(json.dumps(klines)) f.write(json.dumps(klines))
24 changes: 12 additions & 12 deletions setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity', 'dateparser', 'urllib3', 'chardet', 'certifi', 'cryptography', ], install_requires=['requests', 'six', 'Twisted', 'pyOpenSSL', 'autobahn', 'service-identity', 'dateparser', 'urllib3', 'chardet', 'certifi', 'cryptography', ],
keywords='binance exchange rest api bitcoin ethereum btc eth neo', keywords='binance exchange rest api bitcoin ethereum btc eth neo',
classifiers=[ classifiers=[
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License', 'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python', 'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries :: Python Modules',
], ],
) )
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ passenv =
TRAVIS_JOB_ID TRAVIS_JOB_ID


[testenv:flake8] [testenv:flake8]
commands = flake8 binance/ commands = flake8 binance/ setup.py examples/
deps = flake8 deps = flake8


[travis] [travis]
Expand Down

0 comments on commit 45950c4

Please sign in to comment.