From 6c091f15e89215acb3523ddbbed285b5377d541d Mon Sep 17 00:00:00 2001 From: "typelevel-steward[bot]" <106827141+typelevel-steward[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:50:44 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.11.2 in series/3.x --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index a0a86d33e7..65625080f7 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.11.0 +version = 3.11.2 runner.dialect = Scala213Source3 fileOverride { From 02b049c4c9bbd2e275721e182a21932cba143ed4 Mon Sep 17 00:00:00 2001 From: "typelevel-steward[bot]" <106827141+typelevel-steward[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:50:54 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.11.2 Executed command: scalafmt --non-interactive --- .../cats/effect/std/DispatcherSuite.scala | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/tests/shared/src/test/scala/cats/effect/std/DispatcherSuite.scala b/tests/shared/src/test/scala/cats/effect/std/DispatcherSuite.scala index 70a6ba24bd..1402960acd 100644 --- a/tests/shared/src/test/scala/cats/effect/std/DispatcherSuite.scala +++ b/tests/shared/src/test/scala/cats/effect/std/DispatcherSuite.scala @@ -77,19 +77,21 @@ class DispatcherSuite extends BaseSuite with DetectPlatform { D.use { dispatcher => IO.ref(0).flatMap { ctr1 => IO.ref(0).flatMap { ctr2 => - IO.fromFuture(IO { - val (_, cancel) = dispatcher.unsafeToFutureCancelable(IO.uncancelable { _ => - ctr1.update(_ + 1) *> IO.sleep(0.1.second) *> ctr2.update(_ + 1) + IO.fromFuture( + IO { + val (_, cancel) = dispatcher.unsafeToFutureCancelable(IO.uncancelable { _ => + ctr1.update(_ + 1) *> IO.sleep(0.1.second) *> ctr2.update(_ + 1) + }) + val cancelFut = cancel() + cancelFut }) - val cancelFut = cancel() - cancelFut - }).flatMap { _ => - // if we're here, `cancel()` finished, so - // either the task didn't run at all (i.e., - // it was cancelled before starting), or - // it ran and already finished completely: - (ctr1.get, ctr2.get).flatMapN { (v1, v2) => IO(assertEquals(v1, v2)) } - } + .flatMap { _ => + // if we're here, `cancel()` finished, so + // either the task didn't run at all (i.e., + // it was cancelled before starting), or + // it ran and already finished completely: + (ctr1.get, ctr2.get).flatMapN { (v1, v2) => IO(assertEquals(v1, v2)) } + } } } }.replicateA_(if (isJVM) 10000 else 1) @@ -594,11 +596,12 @@ class DispatcherSuite extends BaseSuite with DetectPlatform { real("complete / cancel race") { val tsk = dispatcher.use { dispatcher => - IO.fromFuture(IO { - val (_, cancel) = dispatcher.unsafeToFutureCancelable(IO.unit) - val cancelFut = cancel() - cancelFut - }) + IO.fromFuture( + IO { + val (_, cancel) = dispatcher.unsafeToFutureCancelable(IO.unit) + val cancelFut = cancel() + cancelFut + }) } tsk.replicateA_(if (isJVM) 10000 else 1) From c5222b38a61f4f025868d104a914fa8a24af3a55 Mon Sep 17 00:00:00 2001 From: "typelevel-steward[bot]" <106827141+typelevel-steward[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:50:54 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.11.2' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index bdef5c1e71..b23ca96ca8 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -24,3 +24,6 @@ fa1afb9141016bf6f72896b9867a9bcba3cb2933 # Scala Steward: Reformat with scalafmt 3.10.4 ae82658f87735451df5230ca089b12c25b59c700 + +# Scala Steward: Reformat with scalafmt 3.11.2 +02b049c4c9bbd2e275721e182a21932cba143ed4