Skip to content

Commit

Permalink
Update flake8
Browse files Browse the repository at this point in the history
Signed-off-by: cyc60 <[email protected]>
  • Loading branch information
cyc60 committed May 29, 2024
1 parent 4d99cb5 commit eca9fd6
Show file tree
Hide file tree
Showing 4 changed files with 1,028 additions and 989 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ repos:
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [ python ]

- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
Expand Down
2 changes: 1 addition & 1 deletion oracle/oracle/distributor/common/eth1.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def get_disabled_stakers_reward_token_distributions(
distributed: Wei = Wei(0)
last_staker_index = len(principals) - 1
for i, staker_address in enumerate(principals):
rewards: Wei
reward: Wei
if i == last_staker_index:
reward = Wei(distributor_reward - distributed)
else:
Expand Down
Loading

0 comments on commit eca9fd6

Please sign in to comment.