From 44fa65d41e674769462480c69cef070c7566e30b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 21:22:27 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/isort: 5.9.3 → 5.10.1](https://github.com/PyCQA/isort/compare/5.9.3...5.10.1) - [github.com/psf/black: 21.9b0 → 22.1.0](https://github.com/psf/black/compare/21.9b0...22.1.0) - [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1) - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e93b16a69..61d424105 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,19 +2,19 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.10.1 hooks: - id: isort - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 22.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.1.0 hooks: - id: check-docstring-first - id: check-merge-conflict From 70f8fa8cd77669c5c108e371bb3f9cc7e7d2210d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 21:23:12 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- safe_transaction_service/history/services/balance_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safe_transaction_service/history/services/balance_service.py b/safe_transaction_service/history/services/balance_service.py index 473d93372..e2fb092ad 100644 --- a/safe_transaction_service/history/services/balance_service.py +++ b/safe_transaction_service/history/services/balance_service.py @@ -269,10 +269,10 @@ def get_usd_balances( token_address = balance.token_address if not token_address: # Ether fiat_conversion = eth_price - fiat_balance = fiat_conversion * (balance.balance / 10 ** 18) + fiat_balance = fiat_conversion * (balance.balance / 10**18) else: fiat_conversion = eth_price * token_eth_value - balance_with_decimals = balance.balance / 10 ** balance.token.decimals + balance_with_decimals = balance.balance / 10**balance.token.decimals fiat_balance = fiat_conversion * balance_with_decimals balances_with_usd.append(