diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml index 8518d202812..79de23b1515 100644 --- a/.JuliaFormatter.toml +++ b/.JuliaFormatter.toml @@ -6,3 +6,6 @@ yas_style_nesting = true # Align struct fields for better readability of large struct definitions align_struct_field = true + +# Add trailing comma in lists +trailing_comma = true diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index 7297f1c3ff5..26006b9555f 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -29,7 +29,7 @@ jobs: # TODO: Change the call below to # format(".") run: | - julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.45"))' + julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.60"))' julia -e 'using JuliaFormatter; format(["benchmark", "examples", "ext", "src", "test", "utils"])' - name: Format check run: |