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

[Feature] Break long multitask lines into multiple lines #1700

Open
laurensvalk opened this issue Jul 4, 2024 · 1 comment
Open

[Feature] Break long multitask lines into multiple lines #1700

laurensvalk opened this issue Jul 4, 2024 · 1 comment
Labels
enhancement New feature or request software: pybricks-blocks Issues with blocks and code generation

Comments

@laurensvalk
Copy link
Member

Is your feature request related to a problem? Please describe.
Long lines, especially multitask statements are somewhat hard to see:

image

Describe the solution you'd like
Change

await multitask(gripper.run_angle(500, 90), hatch.run_angle(-200, 45))

to

await multitask(
    gripper.run_angle(500, 90),
    hatch.run_angle(-200, 45)
)

if it is long. This even makes some sense as they are aligned vertically in the blocks too.

Describe alternatives you've considered
Scroll horizontally.

@laurensvalk laurensvalk added enhancement New feature or request software: pybricks-blocks Issues with blocks and code generation labels Jul 4, 2024
@BertLindeman
Copy link

Is your feature request related to a problem?
Please describe.
Long lines, especially multitask statements are somewhat hard to see:
dropped the image
**Describe the solution you'd like
** Change

await multitask(gripper.run_angle(500, 90), hatch.run_angle(-200, 45))

to

await multitask(
    gripper.run_angle(500, 90),
    hatch.run_angle(-200, 45)
)

if it is long. This even makes some sense as they are aligned vertically in the blocks too.

Describe alternatives you've considered Scroll horizontally.

flake8 also does not like the long lines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request software: pybricks-blocks Issues with blocks and code generation
Projects
None yet
Development

No branches or pull requests

2 participants