Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update lint dependencies #3704

Merged
merged 5 commits into from
Dec 21, 2023

Conversation

DanielSchiavini
Copy link
Contributor

@DanielSchiavini DanielSchiavini commented Dec 20, 2023

What I did

Update lint dependencies.

I have been experiencing some F821 issues when running flake8 with match statements. This seems to have been fixed in pyflakes, so it would be great to update the linting dependencies and be able to use more match statements.

How I did it

  • Updated dependencies
  • Fixed new discovered issues
    • Most issues were caused by B023: function-uses-loop-variable
    • The issue with using loop variables is explained here

How to verify it

  • Approve the test run 😃

Commit message

Update lint dependencies

Description for the changelog

n/a

Cute Animal Picture

image

@DanielSchiavini DanielSchiavini marked this pull request as draft December 20, 2023 19:16
function_to_test=lambda: erc20_caller.transfer(w3.eth.accounts[1], -1),
exception=ValidationError,
)
with assert_tx_failed(ValidationError):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is kind of an interesting use of assert_tx_failed because it exposes a naming issue with assert_tx_failed -- assert_tx_failed doesn't actually necessarily check for transaction failure, it could test any exception (and just anchors the state)

@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3116e88) 83.99% compared to head (15420d2) 83.94%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3704      +/-   ##
==========================================
- Coverage   83.99%   83.94%   -0.05%     
==========================================
  Files          92       92              
  Lines       13056    13056              
  Branches     2932     2932              
==========================================
- Hits        10966    10960       -6     
- Misses       1658     1663       +5     
- Partials      432      433       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper enabled auto-merge (squash) December 21, 2023 16:49
@charles-cooper charles-cooper changed the title chore: Update lint dependencies chore: update lint dependencies Dec 21, 2023
@charles-cooper charles-cooper merged commit 8958bff into vyperlang:master Dec 21, 2023
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants