From 6f7c82c9ae35b3c716ea6bad1e05c3e07756b877 Mon Sep 17 00:00:00 2001 From: xmatthias <5024695+xmatthias@users.noreply.github.com> Date: Tue, 28 May 2024 04:39:48 +0000 Subject: [PATCH 1/3] chore: update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 106ecb4ea..af54ccf7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.4.4' + rev: 'v0.4.5' hooks: - id: ruff @@ -56,7 +56,7 @@ repos: )$ - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: From 6952bac91fe8f1a9e33d604b263ce798a40858d8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 28 May 2024 07:01:53 +0200 Subject: [PATCH 2/3] fix: codespell skip's to also work correctly on pre-commit hooks --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7559836d2..e96768c5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -181,4 +181,4 @@ exclude = [ [tool.codespell] ignore-words-list = "coo,fo,strat,zar,selectin" -skip="*.svg,./user_data,./freqtrade/rpc/api_server/ui/installed,./freqtrade/exchange/binance_leverage_tiers.json" +skip="*.svg,./user_data,freqtrade/rpc/api_server/ui/installed,freqtrade/exchange/*.json" From 89d8f27d22c932b9d20aa9a5b38b781539c01c4c Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 28 May 2024 07:14:25 +0200 Subject: [PATCH 3/3] Add fix for bitmart failing test --- tests/exchange_online/test_ccxt_compat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/exchange_online/test_ccxt_compat.py b/tests/exchange_online/test_ccxt_compat.py index 49fbfc60d..45ff03adc 100644 --- a/tests/exchange_online/test_ccxt_compat.py +++ b/tests/exchange_online/test_ccxt_compat.py @@ -116,6 +116,9 @@ class TestCCXTExchange: def test_ccxt_fetch_tickers(self, exchange: EXCHANGE_FIXTURE_TYPE): exch, exchangename = exchange + if exchangename in ("bitmart"): + # TODO: Remove once https://github.com/ccxt/ccxt/issues/22631 is fixed. + pytest.skip("Bitmart is unstable here at the moment") pair = EXCHANGES[exchangename]["pair"] tickers = exch.get_tickers()