From 29ab5e9bb2e071f05f00add80afccb4b87f9ac32 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Thu, 22 Oct 2026 08:49:38 +0200 Subject: [PATCH 1/2] Bump Fantomas to 8.1.0 --- .config/dotnet-tools.json | 2 +- .github/workflows/dotnet.yaml | 4 ++-- hooks/pre-push | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 722a253..a4c1b12 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "fantomas": { - "version": "7.0.6", + "version": "8.1.0", "commands": [ "fantomas" ] diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index 9b5a1c1..8df8682 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -44,10 +44,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Setup .NET SDK v8.0.x + - name: Setup .NET SDK v10.0.x uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: - dotnet-version: 8.0.x + dotnet-version: 10.0.x - name: Prepare .NET tools run: dotnet tool restore - name: Run Fantomas diff --git a/hooks/pre-push b/hooks/pre-push index 6c487c1..423886e 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -3,7 +3,7 @@ import subprocess def check_fantomas(): - result = subprocess.run(["dotnet", "fantomas", "--check", "."]) + result = subprocess.run(["dotnet", "fantomas", "check", "."]) if result.returncode != 0: raise Exception(f"Formatting incomplete (return code: {result.returncode}). Consider running `dotnet fantomas .`") From eaee0f32fc3811a62e407d9242130d2253fa19fe Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Thu, 22 Oct 2026 08:49:46 +0200 Subject: [PATCH 2/2] Format with Fantomas 8.1.0 --- ShapeSifter.Test/TestExamples.fs | 2 +- ShapeSifter/Reflection.fs | 2 +- ShapeSifter/TypeParameterCrate.fs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ShapeSifter.Test/TestExamples.fs b/ShapeSifter.Test/TestExamples.fs index da1d5ac..bc812da 100644 --- a/ShapeSifter.Test/TestExamples.fs +++ b/ShapeSifter.Test/TestExamples.fs @@ -113,7 +113,7 @@ module TestExamples = let head = match tType<'u> with - | String teq -> (xs |> HList.head |> Teq.castTo teq).ToUpper () |> Teq.castFrom teq + | String teq -> (xs |> HList.head |> Teq.castTo teq).ToUpper() |> Teq.castFrom teq | _ -> xs |> HList.head let tail = xs |> HList.tail |> shoutify diff --git a/ShapeSifter/Reflection.fs b/ShapeSifter/Reflection.fs index e56c85e..dcc1f61 100644 --- a/ShapeSifter/Reflection.fs +++ b/ShapeSifter/Reflection.fs @@ -15,7 +15,7 @@ module Reflection = | Lambda (_, e) -> getMethodInfo e | _ -> failwith "Could not get MethodInfo" - let mi = (getMethodInfo e).GetGenericMethodDefinition () + let mi = (getMethodInfo e).GetGenericMethodDefinition() fun ts vs -> mi.MakeGenericMethod (ts |> Array.ofSeq) diff --git a/ShapeSifter/TypeParameterCrate.fs b/ShapeSifter/TypeParameterCrate.fs index 7525381..2c4b1b0 100644 --- a/ShapeSifter/TypeParameterCrate.fs +++ b/ShapeSifter/TypeParameterCrate.fs @@ -13,7 +13,7 @@ module TypeParameterCrate = let make<'a> = { new TypeParameterCrate with - member __.Apply e = e.Eval<'a> () + member __.Apply e = e.Eval<'a>() } let makeUntyped (t : Type) =