diff --git a/Project.toml b/Project.toml index b5fd669..922c466 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorFormatter" uuid = "b6bf39f1-c9d3-4bad-aad8-593d802f65fd" -version = "0.2.5" +version = "0.2.6" authors = ["ITensor developers and contributors"] [workspace] @@ -15,7 +15,7 @@ Runic = "62bfec6d-59d7-401d-8490-b29ee721c001" itfmt = {} [compat] -JuliaFormatter = "2.3.0" +JuliaFormatter = "2.3" JuliaSyntax = "0.4.10" Runic = "1.5.1" julia = "1.10" diff --git a/src/ITensorFormatter.jl b/src/ITensorFormatter.jl index aac3568..9cb985b 100644 --- a/src/ITensorFormatter.jl +++ b/src/ITensorFormatter.jl @@ -41,9 +41,10 @@ const JULIAFORMATTER_OPTIONS = ( disallow_single_arg_nesting = false, normalize_line_endings = "unix", # Line-wrapping-related options - trailing_comma = true, - trailing_zero = true, + trailing_comma = false, join_lines_based_on_source = true, + # Floating point formatting options + trailing_zero = true, ) is_using_or_import(x) = kind(x) === K"using" || kind(x) === K"import"