You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to use @test JuliaFormatter.format(MyPackage; verbose=false, overwrite=false) in the tests of packages I develop. It ensures only formatted code gets merged via CI.
However, I've recently gotten feedback that this "creates a barrier to contributions"1 and that contributors have "no clue what was causing it or how to fix it"2.
It would be nice to have a testing utility that prints beginner-friendly usage instructions for JuliaFormatter and/or a diff when the test fails.
Would you be open to a PR which adds a JuliaFormatter.test_formatting() function that is a thin wrapper around format with additional usage instructions in case of a failure?
I like to use
@test JuliaFormatter.format(MyPackage; verbose=false, overwrite=false)
in the tests of packages I develop. It ensures only formatted code gets merged via CI.However, I've recently gotten feedback that this "creates a barrier to contributions"1 and that contributors have "no clue what was causing it or how to fix it"2.
It would be nice to have a testing utility that prints beginner-friendly usage instructions for JuliaFormatter and/or a diff when the test fails.
CC @greimel @eford
Footnotes
https://github.com/JuliaPluto/PlutoTeachingTools.jl/pull/48#discussion_r1764812942 ↩
https://github.com/JuliaPluto/PlutoTeachingTools.jl/pull/53#issuecomment-2358493189 ↩
The text was updated successfully, but these errors were encountered: