YAML.jl icon indicating copy to clipboard operation
YAML.jl copied to clipboard

[Not Urgent, Stylistic] Format Julia source files by JuliaFormatter

Open Paalon opened this issue 1 year ago • 2 comments

Format Julia source files by JuliaFormatter. Everyone can format sources by executing the following in the project root directory:

using JuliaFormatter

format(".")

Formatting styles are set in .JuliaFormatter.toml. If there are problems or preferences, tell me.

This solves https://github.com/JuliaData/YAML.jl/issues/154.

Paalon avatar Jun 11 '24 12:06 Paalon

This PR will conflict with https://github.com/JuliaData/YAML.jl/pull/153, https://github.com/JuliaData/YAML.jl/pull/155 and https://github.com/JuliaData/YAML.jl/pull/156, therefore if you merge this, you should merge #153, #155 and #156 first, then I reformat sources and I resolve the confliction. Finally, merge this (#157).

Paalon avatar Jun 11 '24 12:06 Paalon

Does it make sense to (also?) make a precommit hook (I think that's what it's called) so this stays consistent?

kescobo avatar Jun 11 '24 15:06 kescobo