Lint fixes (#236)

* correct docstring

* add type annotation to trade_count_lock

* fix indentations

* allow globals in hyperopt.py

* fix import order

* simplify asserts

* use proper variable name

* simplify condition

* fix path operation that fails on windows
This commit is contained in:
Janne Sinivirta
2017-12-25 13:07:50 +02:00
committed by Michael Egger
parent 9959d53f5e
commit de33d69eed
5 changed files with 13 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ def preprocess(tickerdata: Dict[str, List]) -> Dict[str, DataFrame]:
def testdata_path() -> str:
"""Return the path where testdata files are stored"""
return os.path.abspath(os.path.dirname(__file__)) + '/../tests/testdata'
return os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'tests', 'testdata'))
def download_pairs(pairs: List[str]) -> bool: