From 38b35ec528faada174daccc9da4526b4fd7169eb Mon Sep 17 00:00:00 2001 From: goodmost Date: Sun, 28 Apr 2024 18:14:19 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: goodmost --- docs/freqai-feature-engineering.md | 2 +- docs/telegram-usage.md | 2 +- freqtrade/exchange/check_exchange.py | 2 +- tests/exchange/test_exchange_utils.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/freqai-feature-engineering.md b/docs/freqai-feature-engineering.md index 6a1537d91..311127dd7 100644 --- a/docs/freqai-feature-engineering.md +++ b/docs/freqai-feature-engineering.md @@ -235,7 +235,7 @@ By default, FreqAI builds a dynamic pipeline based on user congfiguration settin Users are encouraged to customize the data pipeline to their needs by building their own data pipeline. This can be done by simply setting `dk.feature_pipeline` to their desired `Pipeline` object inside their `IFreqaiModel` `train()` function, or if they prefer not to touch the `train()` function, they can override `define_data_pipeline`/`define_label_pipeline` functions in their `IFreqaiModel`: !!! note "More information available" - FreqAI uses the the [`DataSieve`](https://github.com/emergentmethods/datasieve) pipeline, which follows the SKlearn pipeline API, but adds, among other features, coherence between the X, y, and sample_weight vector point removals, feature removal, feature name following. + FreqAI uses the [`DataSieve`](https://github.com/emergentmethods/datasieve) pipeline, which follows the SKlearn pipeline API, but adds, among other features, coherence between the X, y, and sample_weight vector point removals, feature removal, feature name following. ```python from datasieve.transforms import SKLearnWrapper, DissimilarityIndex diff --git a/docs/telegram-usage.md b/docs/telegram-usage.md index f878fc2b3..377479a90 100644 --- a/docs/telegram-usage.md +++ b/docs/telegram-usage.md @@ -53,7 +53,7 @@ You can use bots in telegram groups by just adding them to the group. You can fi } ``` -For the Freqtrade configuration, you can then use the the full value (including `-` if it's there) as string: +For the Freqtrade configuration, you can then use the full value (including `-` if it's there) as string: ```json "chat_id": "-1001332619709" diff --git a/freqtrade/exchange/check_exchange.py b/freqtrade/exchange/check_exchange.py index 69330bcd0..94e330cc1 100644 --- a/freqtrade/exchange/check_exchange.py +++ b/freqtrade/exchange/check_exchange.py @@ -56,7 +56,7 @@ def check_exchange(config: Config, check_for_bad: bool = True) -> bool: logger.info(f'Exchange "{exchange}" is officially supported ' f'by the Freqtrade development team.') else: - logger.warning(f'Exchange "{exchange}" is known to the the ccxt library, ' + logger.warning(f'Exchange "{exchange}" is known to the ccxt library, ' f'available for the bot, but not officially supported ' f'by the Freqtrade development team. ' f'It may work flawlessly (please report back) or have serious issues. ' diff --git a/tests/exchange/test_exchange_utils.py b/tests/exchange/test_exchange_utils.py index dd79bf083..8ae81f814 100644 --- a/tests/exchange/test_exchange_utils.py +++ b/tests/exchange/test_exchange_utils.py @@ -50,7 +50,7 @@ def test_check_exchange(default_conf, caplog) -> None: # Test an available exchange, supported by ccxt default_conf.get('exchange').update({'name': 'huobijp'}) assert check_exchange(default_conf) - assert log_has_re(r"Exchange .* is known to the the ccxt library, available for the bot, " + assert log_has_re(r"Exchange .* is known to the ccxt library, available for the bot, " r"but not officially supported " r"by the Freqtrade development team\. .*", caplog) caplog.clear() @@ -65,7 +65,7 @@ def test_check_exchange(default_conf, caplog) -> None: # Test a 'bad' exchange with check_for_bad=False default_conf.get('exchange').update({'name': 'bitmex'}) assert check_exchange(default_conf, False) - assert log_has_re(r"Exchange .* is known to the the ccxt library, available for the bot, " + assert log_has_re(r"Exchange .* is known to the ccxt library, available for the bot, " r"but not officially supported " r"by the Freqtrade development team\. .*", caplog) caplog.clear()