From 13e2f71d3008d9c6fa66bf9c53ddc53ab6cffd9e Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 22 Jan 2019 20:01:12 +0100 Subject: [PATCH] Add flake8 plugins and implement small improvements --- freqtrade/freqtradebot.py | 2 +- freqtrade/optimize/backtesting.py | 2 +- requirements-dev.txt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 2e09cf116..7d14c734c 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -34,7 +34,7 @@ class FreqtradeBot(object): This is from here the bot start its logic. """ - def __init__(self, config: Dict[str, Any])-> None: + def __init__(self, config: Dict[str, Any]) -> None: """ Init all variables and object the bot need to work :param config: configuration dict, you can use the Configuration.get_config() diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 38bbe13d4..37ba2ad83 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -13,7 +13,7 @@ from typing import Any, Dict, List, NamedTuple, Optional from pandas import DataFrame from tabulate import tabulate -import freqtrade.optimize as optimize +from freqtrade import optimize from freqtrade import DependencyException, constants from freqtrade.arguments import Arguments from freqtrade.configuration import Configuration diff --git a/requirements-dev.txt b/requirements-dev.txt index f68fe8814..4f8504c8a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,6 +2,8 @@ -r requirements.txt flake8==3.6.0 +flake8-type-annotations==0.1.0 +flake8-tidy-imports==1.1.0 pytest==4.1.1 pytest-mock==1.10.0 pytest-asyncio==0.10.0