From 24e4581d26e7e20abb4a8be246dcd27c55fc4a8a Mon Sep 17 00:00:00 2001 From: "typelevel-steward[bot]" <106827141+typelevel-steward[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:13:37 +0000 Subject: [PATCH] Reformat with scalafmt 3.8.3 Executed command: scalafmt --non-interactive --- build.sbt | 13 ++++++++----- .../src/main/scala-3/weaver/ExpectMacro.scala | 14 ++++++-------- .../shared/src/main/scala/weaver/Formatter.scala | 3 ++- .../shared/src/test/scala/DogFoodTests.scala | 3 ++- .../main/scala/weaver/scalacheck/Checkers.scala | 3 ++- 5 files changed, 20 insertions(+), 16 deletions(-) diff --git a/build.sbt b/build.sbt index 9afe9228..edf9acb7 100644 --- a/build.sbt +++ b/build.sbt @@ -69,7 +69,8 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform) "co.fs2" %%% "fs2-core" % Version.fs2, "org.typelevel" %%% "cats-effect" % Version.catsEffect, // https://github.com/portable-scala/portable-scala-reflect/issues/23 - "org.portable-scala" %%% "portable-scala-reflect" % Version.portableReflect cross CrossVersion.for3Use2_13, + "org.portable-scala" %%% "portable-scala-reflect" % Version + .portableReflect cross CrossVersion.for3Use2_13, "org.typelevel" %% "scalac-compat-annotation" % Version.scalacCompatAnnotation, "org.scalameta" %%% "munit-diff" % Version.munitDiff, if (scalaVersion.value.startsWith("3.")) @@ -87,8 +88,9 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform) lazy val coreJVM = core.jvm .settings( libraryDependencies ++= Seq( - "org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13, - "junit" % "junit" % Version.junit % Optional + "org.scala-js" %%% "scalajs-stubs" % Version + .scalajsStubs % "provided" cross CrossVersion.for3Use2_13, + "junit" % "junit" % Version.junit % Optional ) ) @@ -105,8 +107,9 @@ lazy val framework = crossProject(JVMPlatform, JSPlatform, NativePlatform) lazy val frameworkJVM = framework.jvm .settings( libraryDependencies ++= Seq( - "org.scala-sbt" % "test-interface" % Version.testInterface, - "org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13 + "org.scala-sbt" % "test-interface" % Version.testInterface, + "org.scala-js" %%% "scalajs-stubs" % Version + .scalajsStubs % "provided" cross CrossVersion.for3Use2_13 ) ) diff --git a/modules/core/shared/src/main/scala-3/weaver/ExpectMacro.scala b/modules/core/shared/src/main/scala-3/weaver/ExpectMacro.scala index 8f2349ee..1ba4c16b 100644 --- a/modules/core/shared/src/main/scala-3/weaver/ExpectMacro.scala +++ b/modules/core/shared/src/main/scala-3/weaver/ExpectMacro.scala @@ -12,15 +12,13 @@ private[weaver] trait ExpectMacro { * Use the [[Expectations.Helpers.clue]] function to investigate any failures. */ inline def apply(assertion: Clues ?=> Boolean): Expectations = - ${ ExpectMacro.applyImpl('assertion) } + ${ ExpectMacro.applyImpl('assertion) } - /** - * Asserts that a boolean value is true and displays a failure message if - * not. - * - * Use the [[Expectations.Helpers.clue]] function to investigate any - * failures. - */ + /** + * Asserts that a boolean value is true and displays a failure message if not. + * + * Use the [[Expectations.Helpers.clue]] function to investigate any failures. + */ inline def apply( assertion: Clues ?=> Boolean, message: => String): Expectations = diff --git a/modules/core/shared/src/main/scala/weaver/Formatter.scala b/modules/core/shared/src/main/scala/weaver/Formatter.scala index 1823a04b..b953284f 100644 --- a/modules/core/shared/src/main/scala/weaver/Formatter.scala +++ b/modules/core/shared/src/main/scala/weaver/Formatter.scala @@ -66,7 +66,8 @@ object Formatter { val newLine = '\n' builder.append(formatResultStatus(name, result, outcome.duration)) - if ((mode == Verbose && outcome.status.isFailed) || (mode == Summary && !outcome.status.isFailed)) + if ((mode == Verbose && outcome.status + .isFailed) || (mode == Summary && !outcome.status.isFailed)) result.formatted.foreach { resultInfo => builder.append(EOL) builder.append(resultInfo) diff --git a/modules/framework-cats/shared/src/test/scala/DogFoodTests.scala b/modules/framework-cats/shared/src/test/scala/DogFoodTests.scala index 89d91b34..4624a984 100644 --- a/modules/framework-cats/shared/src/test/scala/DogFoodTests.scala +++ b/modules/framework-cats/shared/src/test/scala/DogFoodTests.scala @@ -96,7 +96,8 @@ object DogFoodTests extends IOSuite { val expected = s""" - |- erroring with a long message: ${Meta.ErroringWithLongPayload.smiles} 0ms + |- erroring with a long message: ${Meta.ErroringWithLongPayload + .smiles} 0ms | Meta$$CustomException: surfaced error | | DogFoodTests.scala:15 my.package.MyClass#MyMethod diff --git a/modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala b/modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala index 693359a1..b54c2cd2 100644 --- a/modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala +++ b/modules/scalacheck/shared/src/main/scala/weaver/scalacheck/Checkers.scala @@ -168,7 +168,8 @@ trait Checkers { s"""Property test failed on try $ith with seed $seed and input $input. |You can reproduce this by adding the following override to your suite: | - |override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)""".stripMargin) + |override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)""" + .stripMargin) .and(exp) copy(failure = Some(failure)) } else this