Closed sudame closed 2 years ago
@sudame thanks for contributing will review it
@sudame Looks really good, thank you for this!
Any thoughts on integrating the JuliaFormatter.jl
package/step in CI (or somehow into the workflow in automated way)?
@essenciary Thank you for your review and merge 🚀 I'd like to set up CI (I'm thinking of using GitHub Actions) to format with JuliaFormatter.jl, but I have no time in this week. Should I post a issue?
@sudame yes please, that'd be great so we don't forget about it.
This repository contains a mixture of Julia codes written in various code styles. This not only makes collaboration difficult, but also hinders the understanding of beginners, the main users of this repository.
Thankfully, there are some good formatter for Julia. The most famous and common one is JuliaFormatter.jl; this formatter is used in de-facto standard vscode extension.
what I did in this PR
I did the following in the
BasicExamples
directory..JuliaFormatter.toml
(see the formatter's README)using JuliaFormatter; format(".")
in the Julia REPLinclude("XXX.jl")
in the Julia REPL, and confirm that the formatting did not change outputNote that, this repository has some broken examples, so in step 4 I could only check for the working examples.