From ae2c50fceb6e21e2edaf19b3acca17e31583610f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 12:01:30 +0200 Subject: [PATCH] Bump black from 23.3.0 to 24.3.0 (#702) * Bump black from 23.3.0 to 24.3.0 * Apply black with new version * Contributor: jdsika, Effort=0.5 Bumps [black](https://github.com/psf/black) from 23.3.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.3.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... --------- Signed-off-by: dependabot[bot] Signed-off-by: Carlo van Driesten --- requirements_developers.txt | 2 +- .../tzpro_reward_provider_helper.py | 6 ++--- src/util/csv_calculation_file_parser.py | 24 ++++++++++++------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/requirements_developers.txt b/requirements_developers.txt index d0d68a0a..cd0fe6ad 100644 --- a/requirements_developers.txt +++ b/requirements_developers.txt @@ -5,7 +5,7 @@ parameterized>=0.9.0 Pygments>=2.16.1 graphviz>=0.20.1 click==8.1.7 -black==23.3.0 +black==24.3.0 flake8>=5.0.4 recommonmark==0.7.1 sphinx_rtd_theme==1.3.0 diff --git a/src/blockwatch/tzpro_reward_provider_helper.py b/src/blockwatch/tzpro_reward_provider_helper.py index 8f3c0e9c..9e1725e9 100644 --- a/src/blockwatch/tzpro_reward_provider_helper.py +++ b/src/blockwatch/tzpro_reward_provider_helper.py @@ -220,9 +220,9 @@ def get_rewards_for_cycle(self, cycle): for list_address in split_addresses: list_curr_balances = self.fetch_current_balance(list_address) for d in list_address: - root["delegators_balances"][d][ - "current_balance" - ] = list_curr_balances[d] + root["delegators_balances"][d]["current_balance"] = ( + list_curr_balances[d] + ) curr_bal_delegators.append(d) # All done fetching balances. diff --git a/src/util/csv_calculation_file_parser.py b/src/util/csv_calculation_file_parser.py index 97f32845..309fdacf 100644 --- a/src/util/csv_calculation_file_parser.py +++ b/src/util/csv_calculation_file_parser.py @@ -243,17 +243,23 @@ def write( pymnt_log.amount, pymnt_log.service_fee_amount, pymnt_log.service_fee_rate, - "pending" - if early_payout - else "{:d}".format(int(pymnt_log.overestimate)), + ( + "pending" + if early_payout + else "{:d}".format(int(pymnt_log.overestimate)) + ), pymnt_log.adjustment, pymnt_log.adjusted_amount, - "pending" - if not fees_simulated - else "{:d}".format(int(pymnt_log.delegate_transaction_fee)), - "pending" - if not fees_simulated - else "{:d}".format(int(pymnt_log.delegator_transaction_fee)), + ( + "pending" + if not fees_simulated + else "{:d}".format(int(pymnt_log.delegate_transaction_fee)) + ), + ( + "pending" + if not fees_simulated + else "{:d}".format(int(pymnt_log.delegator_transaction_fee)) + ), int(1) if pymnt_log.payable else int(0), int(1) if pymnt_log.skipped else int(0), pymnt_log.skippedatphase,