Skip to content

Commit 1fd5c40

Browse files
authored
Disable trailing commas (#10)
1 parent 041974c commit 1fd5c40

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ITensorFormatter"
22
uuid = "b6bf39f1-c9d3-4bad-aad8-593d802f65fd"
3-
version = "0.2.5"
3+
version = "0.2.6"
44
authors = ["ITensor developers <support@itensor.org> and contributors"]
55

66
[workspace]
@@ -15,7 +15,7 @@ Runic = "62bfec6d-59d7-401d-8490-b29ee721c001"
1515
itfmt = {}
1616

1717
[compat]
18-
JuliaFormatter = "2.3.0"
18+
JuliaFormatter = "2.3"
1919
JuliaSyntax = "0.4.10"
2020
Runic = "1.5.1"
2121
julia = "1.10"

src/ITensorFormatter.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ const JULIAFORMATTER_OPTIONS = (
4141
disallow_single_arg_nesting = false,
4242
normalize_line_endings = "unix",
4343
# Line-wrapping-related options
44-
trailing_comma = true,
45-
trailing_zero = true,
44+
trailing_comma = false,
4645
join_lines_based_on_source = true,
46+
# Floating point formatting options
47+
trailing_zero = true,
4748
)
4849

4950
is_using_or_import(x) = kind(x) === K"using" || kind(x) === K"import"

0 commit comments

Comments
 (0)