You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
blackadder should order imports, interfaces, events, and structs so that they are logically grouped together.
absolute import statements
one blank line between the top-level natspec and the first absolute import
zero blank lines between each statement
relative imports
one blank line between the last absolute import and the first relative import
zero blank lines between each statement
implements
one blank line between the last relative import and the first implements
zero blank lines between each statement
interfaces
two blank lines between the first interface and the last line of the previous statement
one blank line between each interface
events
two blank lines between the first event and the last line of the previous statement
one blank line between each event
structs
two blank lines between the first struct and the last line of the previous statement
one blank line between each struct
Each of these sections should also be alphabetically ordered.
This functionality might be more in the spirit of isort than black, but given there is no isort for Vyper I think it could happily live within a tool such as blackadder :)
The text was updated successfully, but these errors were encountered:
This functionality might be more in the spirit of isort than black, but given there is no isort for Vyper I think it could happily live within a tool such as blackadder :)
I think this functionality is useful but I'd rather keep the scope of blackadder limited for now, being "code formatter".
blackadder
should order imports, interfaces, events, and structs so that they are logically grouped together.Each of these sections should also be alphabetically ordered.
This functionality might be more in the spirit of
isort
thanblack
, but given there is noisort
for Vyper I think it could happily live within a tool such asblackadder
:)The text was updated successfully, but these errors were encountered: