SciML / SciMLStyle

A style guide for stylish Julia developers
https://docs.sciml.ai/SciMLStyle/stable/
MIT License
211 stars 18 forks source link

SciMLStyle format for short begin end block #25

Open isaacsas opened 2 years ago

isaacsas commented 2 years ago

@ChrisRackauckas could the rule that sends

rn = @reaction_network begin
     k/$V, A + B --> C
end k

to

rn = @reaction_network begin k / $V, A + B --> C end k

be changed to keep the former? I'm having to disable the formatter in Catalyst in a bunch of places to avoid such changes, which decrease readability.

ChrisRackauckas commented 2 years ago

It could be, I don't know how to go about doing that. Ask in the JuliaFormatter issues?