Skip to content

Commit

Permalink
Flake8 for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Mar 23, 2019
1 parent 6312d78 commit 184b13f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
script:
- pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/
# Allow failure for coveralls
- coveralls || true
- coveralls || true
name: pytest
- script:
- cp config.json.example config.json
Expand All @@ -39,7 +39,7 @@ jobs:
- cp config.json.example config.json
- python freqtrade/main.py --datadir freqtrade/tests/testdata hyperopt -e 5
name: hyperopt
- script: flake8 freqtrade
- script: flake8 freqtrade scripts
name: flake8
- script: mypy freqtrade
name: mypy
Expand Down
2 changes: 0 additions & 2 deletions scripts/get_market_pairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def print_supported_exchanges():

id = sys.argv[1] # get exchange id from command line arguments


# check if the exchange is supported by ccxt
exchange_found = id in ccxt.exchanges

Expand Down Expand Up @@ -90,4 +89,3 @@ def print_supported_exchanges():
dump('[' + type(e).__name__ + ']', str(e))
dump("Usage: python " + sys.argv[0], green('id'))
print_supported_exchanges()

6 changes: 2 additions & 4 deletions scripts/plot_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,22 @@
> python3 scripts/plot_dataframe.py --pairs BTC/EUR,XRP/BTC -d user_data/data/
--indicators1 sma,ema3 --indicators2 fastk,fastd
"""
import json
import logging
import sys
from argparse import Namespace
from pathlib import Path
from typing import Dict, List, Any
from typing import Any, Dict, List

import pandas as pd
import plotly.graph_objs as go
import pytz

from plotly import tools
from plotly.offline import plot

from freqtrade import persistence
from freqtrade.arguments import Arguments, TimeRange
from freqtrade.data import history
from freqtrade.data.btanalysis import load_backtest_data, BT_DATA_COLUMNS
from freqtrade.data.btanalysis import BT_DATA_COLUMNS, load_backtest_data
from freqtrade.exchange import Exchange
from freqtrade.optimize.backtesting import setup_configuration
from freqtrade.persistence import Trade
Expand Down
10 changes: 4 additions & 6 deletions scripts/plot_profit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,24 @@
--timerange: specify what timerange of data to use
--export-filename: Specify where the backtest export is located.
"""
import json
import logging
import sys
import json
from argparse import Namespace
from pathlib import Path
from typing import List, Optional
import numpy as np

import numpy as np
import plotly.graph_objs as go
from plotly import tools
from plotly.offline import plot
import plotly.graph_objs as go

from freqtrade import constants, misc
from freqtrade.arguments import Arguments
from freqtrade.configuration import Configuration
from freqtrade import constants
from freqtrade.data import history
from freqtrade.resolvers import StrategyResolver
from freqtrade.state import RunMode
import freqtrade.misc as misc


logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 184b13f

Please sign in to comment.