From 37feede6a5f61cf29ff4fe883a3f98047e12254c Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 19 Apr 2024 06:32:59 +0200 Subject: [PATCH] Fix some codespell introduced syntax errors --- freqtrade/freqai/RL/BaseReinforcementLearningModel.py | 2 +- tests/exchange/test_exchange.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/freqai/RL/BaseReinforcementLearningModel.py b/freqtrade/freqai/RL/BaseReinforcementLearningModel.py index 4542c7090..71fd9c28c 100644 --- a/freqtrade/freqai/RL/BaseReinforcementLearningModel.py +++ b/freqtrade/freqai/RL/BaseReinforcementLearningModel.py @@ -311,7 +311,7 @@ class BaseReinforcementLearningModel(IFreqaiModel): if not prices_train_old.empty: prices_train = prices_train_old rename_dict = rename_dict_old - logger.warning('Reinforcement learning module didn't find the correct raw prices ' + logger.warning('Reinforcement learning module didn\'t find the correct raw prices ' 'assigned in feature_engineering_standard(). ' 'Please assign them with:\n' 'dataframe["%-raw_close"] = dataframe["close"]\n' diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 912d55adf..cb23a8742 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -4346,7 +4346,7 @@ def test_combine_funding_and_mark( ('binance', 0, 2, "2021-09-01 00:00:01", "2021-09-01 08:00:00", 30.0, -0.00091409999), ('binance', 0, 2, "2021-08-31 23:58:00", "2021-09-01 08:00:00", 30.0, -0.00091409999), ('binance', 0, 2, "2021-09-01 00:10:01", "2021-09-01 08:00:00", 30.0, -0.0002493), - # TODO: Uncomment once _calculate_funding_fees can pas time_in_ratio to exchange._get_funding_fee + # TODO: Uncomment once _calculate_funding_fees can pass time_in_ratio to exchange. # ('kraken', "2021-09-01 00:00:00", "2021-09-01 08:00:00", 30.0, -0.0014937), # ('kraken', "2021-09-01 00:00:15", "2021-09-01 08:00:00", 30.0, -0.0008289), # ('kraken', "2021-09-01 01:00:14", "2021-09-01 08:00:00", 30.0, -0.0008289), @@ -4358,7 +4358,7 @@ def test_combine_funding_and_mark( ('gate', 0, 2, "2021-09-01 00:00:00", "2021-09-01 12:00:00", 30.0, -0.0009140999), ('gate', 1, 2, "2021-09-01 00:00:01", "2021-09-01 08:00:00", 30.0, -0.0002493), ('binance', 0, 2, "2021-09-01 00:00:00", "2021-09-01 08:00:00", 50.0, -0.0015235), - # TODO: Uncomment once _calculate_funding_fees can pas time_in_ratio to exchange._get_funding_fee + # TODO: Uncomment once _calculate_funding_fees can pass time_in_ratio to exchange. # ('kraken', "2021-09-01 00:00:00", "2021-09-01 08:00:00", 50.0, -0.0024895), ]) def test__fetch_and_calculate_funding_fees(