From 2bc9413be11288d0b42c0c354cb2d988eca5af22 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 22 Feb 2023 20:58:24 +0100 Subject: [PATCH] Fix minor stylistic errors --- freqtrade/__main__.py | 0 freqtrade/commands/analyze_commands.py | 0 freqtrade/commands/hyperopt_commands.py | 0 freqtrade/data/entryexitanalysis.py | 0 freqtrade/optimize/hyperopt_tools.py | 0 freqtrade/vendor/qtpylib/indicators.py | 1 - freqtrade/worker.py | 0 scripts/ws_client.py | 0 tests/data/test_entryexitanalysis.py | 0 tests/exchange/test_ccxt_compat.py | 2 +- tests/strategy/test_interface.py | 4 ++-- 11 files changed, 3 insertions(+), 4 deletions(-) mode change 100644 => 100755 freqtrade/__main__.py mode change 100755 => 100644 freqtrade/commands/analyze_commands.py mode change 100755 => 100644 freqtrade/commands/hyperopt_commands.py mode change 100755 => 100644 freqtrade/data/entryexitanalysis.py mode change 100755 => 100644 freqtrade/optimize/hyperopt_tools.py mode change 100755 => 100644 freqtrade/worker.py mode change 100644 => 100755 scripts/ws_client.py mode change 100755 => 100644 tests/data/test_entryexitanalysis.py diff --git a/freqtrade/__main__.py b/freqtrade/__main__.py old mode 100644 new mode 100755 diff --git a/freqtrade/commands/analyze_commands.py b/freqtrade/commands/analyze_commands.py old mode 100755 new mode 100644 diff --git a/freqtrade/commands/hyperopt_commands.py b/freqtrade/commands/hyperopt_commands.py old mode 100755 new mode 100644 diff --git a/freqtrade/data/entryexitanalysis.py b/freqtrade/data/entryexitanalysis.py old mode 100755 new mode 100644 diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py old mode 100755 new mode 100644 diff --git a/freqtrade/vendor/qtpylib/indicators.py b/freqtrade/vendor/qtpylib/indicators.py index 4f14ae13c..3da4f038d 100644 --- a/freqtrade/vendor/qtpylib/indicators.py +++ b/freqtrade/vendor/qtpylib/indicators.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # QTPyLib: Quantitative Trading Python Library diff --git a/freqtrade/worker.py b/freqtrade/worker.py old mode 100755 new mode 100644 diff --git a/scripts/ws_client.py b/scripts/ws_client.py old mode 100644 new mode 100755 diff --git a/tests/data/test_entryexitanalysis.py b/tests/data/test_entryexitanalysis.py old mode 100755 new mode 100644 diff --git a/tests/exchange/test_ccxt_compat.py b/tests/exchange/test_ccxt_compat.py index f1d240f9f..bbeb56c6a 100644 --- a/tests/exchange/test_ccxt_compat.py +++ b/tests/exchange/test_ccxt_compat.py @@ -309,7 +309,7 @@ def exchange(request, exchange_conf): @pytest.fixture(params=EXCHANGES, scope="class") def exchange_futures(request, exchange_conf, class_mocker): - if not EXCHANGES[request.param].get('futures') is True: + if EXCHANGES[request.param].get('futures') is not True: yield None, request.param else: exchange_conf = set_test_proxy( diff --git a/tests/strategy/test_interface.py b/tests/strategy/test_interface.py index fe562907a..0b30d2059 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -214,12 +214,12 @@ def test_ignore_expired_candle(default_conf): current_time = latest_date + timedelta(seconds=30 + 300) - assert not strategy.ignore_expired_candle( + assert strategy.ignore_expired_candle( latest_date=latest_date, current_time=current_time, timeframe_seconds=300, enter=True - ) is True + ) is not True def test_assert_df_raise(mocker, caplog, ohlcv_history):