-
Notifications
You must be signed in to change notification settings - Fork 419
chore(tooling): Update static checks #1428
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2cadcba
add ruff format
gurukamath 6b56fd2
extend checks to tests
gurukamath 04dbacf
remove exclude dirs from ruff config
gurukamath 98d5485
add D space rules to ruff
gurukamath 7e120be
stop ignoring D200 in ruff
gurukamath 39dfd3f
stop ignoring D410 in ruff
gurukamath 0af276b
stop ignoring D411 in ruff
gurukamath aa096ba
stop ignoring D412 in ruff
gurukamath 56650ee
stop ignoring D413 in ruff
gurukamath 6b5af3c
stop ignoring D414 in ruff
gurukamath 7ba0544
stop ignoring D416 in ruff
gurukamath a24b99f
stop ignoring E203 in ruff
gurukamath 755b804
tests follow the same rules as other code
gurukamath c5586b9
tests stop ignoring D103
gurukamath a00af88
tests stop ignoring D104
gurukamath 5014333
tests stop ignoring E501
gurukamath 09c069c
clean up ruff config
gurukamath 5c06d96
stop ignoring D400 in ruff
gurukamath fde14ab
stop ignoring D415
gurukamath e5ab72f
Revert "stop ignoring D200 in ruff"
gurukamath 06b62ec
enable C4
gurukamath 1da0e96
Apply suggestions from code review
gurukamath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| """ | ||
| Cryptographic primitives used in Ethereum. | ||
| """ | ||
| """Cryptographic primitives used in Ethereum.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,23 @@ | ||
| """ | ||
| Error types common across all Ethereum forks. | ||
| """ | ||
| """Error types common across all Ethereum forks.""" | ||
|
|
||
|
|
||
| class EthereumException(Exception): # noqa N818 | ||
| class EthereumException(Exception): # noqa N818 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we want it to read |
||
| """ | ||
| Base class for all exceptions _expected_ to be thrown during normal | ||
| operation. | ||
| """ | ||
|
|
||
|
|
||
| class InvalidBlock(EthereumException): | ||
| """ | ||
| Thrown when a block being processed is found to be invalid. | ||
| """ | ||
| """Thrown when a block being processed is found to be invalid.""" | ||
|
|
||
|
|
||
| class StateWithEmptyAccount(EthereumException): | ||
| """ | ||
| Thrown when the state has empty account. | ||
| """ | ||
| """Thrown when the state has empty account.""" | ||
|
|
||
|
|
||
| class InvalidTransaction(EthereumException): | ||
| """ | ||
| Thrown when a transaction being processed is found to be invalid. | ||
| """ | ||
| """Thrown when a transaction being processed is found to be invalid.""" | ||
|
|
||
|
|
||
| class InvalidSenderError(InvalidTransaction): | ||
|
|
@@ -36,9 +28,7 @@ class InvalidSenderError(InvalidTransaction): | |
|
|
||
|
|
||
| class InvalidSignatureError(InvalidTransaction): | ||
| """ | ||
| Thrown when a transaction has an invalid signature. | ||
| """ | ||
| """Thrown when a transaction has an invalid signature.""" | ||
|
|
||
|
|
||
| class InsufficientBalanceError(InvalidTransaction): | ||
|
|
@@ -70,6 +60,4 @@ class InsufficientTransactionGasError(InvalidTransaction): | |
|
|
||
|
|
||
| class NonceOverflowError(InvalidTransaction): | ||
| """ | ||
| Thrown when a transaction's nonce is greater than `2**64 - 2`. | ||
| """ | ||
| """Thrown when a transaction's nonce is greater than `2**64 - 2`.""" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.