Merge pull request #193 from gcarq/feature/ci-enforce-pep8

CI: enforce PEP8 conform code
This commit is contained in:
Janne Sinivirta
2017-12-17 07:42:23 +02:00
committed by GitHub
12 changed files with 45 additions and 21 deletions

View File

@@ -50,7 +50,7 @@ OPTIMIZE_CONFIG = {
}
# Monkey patch config
from freqtrade import main
from freqtrade import main # noqa
main._CONF = OPTIMIZE_CONFIG
@@ -103,6 +103,7 @@ SPACE = {
]),
}
def log_results(results):
"if results is better than _TO_BEAT show it"
@@ -119,6 +120,7 @@ def log_results(results):
print('.', end='')
sys.stdout.flush()
def optimizer(params):
global _CURRENT_TRIES
@@ -149,7 +151,7 @@ def optimizer(params):
'result': result,
'results': results
}
# logger.info('{:5d}/{}: {}'.format(_CURRENT_TRIES, TOTAL_TRIES, result))
log_results(result_data)