Skip to content

Commit

Permalink
Bump black from 23.3.0 to 24.3.0 (#702)
Browse files Browse the repository at this point in the history
* 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](psf/black@23.3.0...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

---------
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Carlo van Driesten <[email protected]>
  • Loading branch information
dependabot[bot] authored May 28, 2024
1 parent 4601f4b commit ae2c50f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion requirements_developers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/blockwatch/tzpro_reward_provider_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
24 changes: 15 additions & 9 deletions src/util/csv_calculation_file_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ae2c50f

Please sign in to comment.