-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat:add autopep8 format #31
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already approving, but could you check the line with the weird line length + add a version check?
Feel free to rebase immediately when its done!
pip3 install --upgrade autopep8 | ||
else | ||
echo "autopep8 is installed" | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably also want version checks here to avoid random breakage in CI.
l1.py
Outdated
@@ -174,7 +173,8 @@ def start_devnet_l1_node(paths: OPPaths): | |||
except Exception: | |||
running = False | |||
if running: | |||
raise Exception("Couldn't start L1 node: server already running at localhost:8545") | |||
raise Exception( | |||
"Couldn't start L1 node: server already running at localhost:8545") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird, this is less than 100 characters long.
|
||
format: ## Run format | ||
@autopep8 --in-place --recursive . --exclude optimism,op-geth,venv --max-line-length 120 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually go for 100 as line length. Do you have strong opinions on 120?
Signed-off-by: grapebaba <[email protected]>
…ill not upgrade past
Made the fixes, merging |
fix #28