From 04bbc78815208fd32ebeeea560a79d5bac29bca5 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 29 Oct 2021 21:15:09 +0200 Subject: [PATCH 1/2] Update scalafmt-core to 3.0.8 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index ce61acabf..f04574786 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.0.7 +version = 3.0.8 maxColumn = 100 docstrings.style = keep From cac8f5249846c22bdd25c14910d9431e0ec04c0a Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Fri, 29 Oct 2021 21:15:23 +0200 Subject: [PATCH 2/2] Reformat with scalafmt 3.0.8 --- build.sbt | 12 ++++++------ .../eu/timepit/refined/scalacheck/numeric.scala | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build.sbt b/build.sbt index 788a8b478..32ff2578d 100644 --- a/build.sbt +++ b/build.sbt @@ -413,7 +413,7 @@ lazy val metadataSettings = Def.settings( lazy val compileSettings = Def.settings( scalacOptions ++= Seq( - //"-deprecation", + // "-deprecation", "-encoding", "UTF-8", "-feature", @@ -430,10 +430,10 @@ lazy val compileSettings = Def.settings( "-Ywarn-value-discard", "-Ywarn-unused:implicits", "-Ywarn-unused:imports" - //"-Ywarn-unused:locals", - //"-Ywarn-unused:params", - //"-Ywarn-unused:patvars" - //"-Ywarn-unused:privates" + // "-Ywarn-unused:locals", + // "-Ywarn-unused:params", + // "-Ywarn-unused:patvars" + // "-Ywarn-unused:privates" ) case _ => Seq.empty } @@ -473,7 +473,7 @@ lazy val scaladocSettings = Def.settings( val tag = s"v${version.value}" val tree = if (isSnapshot.value) "master" else tag Seq( - //"-diagrams", + // "-diagrams", "-diagrams-debug", "-doc-source-url", s"${scmInfo.value.get.browseUrl}/blob/$treeā‚¬{FILE_PATH}.scala", diff --git a/modules/scalacheck/shared/src/main/scala/eu/timepit/refined/scalacheck/numeric.scala b/modules/scalacheck/shared/src/main/scala/eu/timepit/refined/scalacheck/numeric.scala index ee30d643d..363ec429b 100644 --- a/modules/scalacheck/shared/src/main/scala/eu/timepit/refined/scalacheck/numeric.scala +++ b/modules/scalacheck/shared/src/main/scala/eu/timepit/refined/scalacheck/numeric.scala @@ -27,7 +27,7 @@ trait NumericInstances { ): Gen[F[T, P]] = Gen.chooseNum(rt.unwrap(min), rt.unwrap(max)).filter(v.isValid).map(rt.unsafeWrap) - /// + // / implicit def lessArbitrary[F[_, _]: RefType, T: Numeric: Choose: Adjacent, N](implicit min: Min[T], @@ -53,7 +53,7 @@ trait NumericInstances { ): Arbitrary[F[T, GreaterEqual[N]]] = rangeClosedArbitrary(wn.snd, max.max) - /// + // / implicit def intervalOpenArbitrary[F[_, _]: RefType, T: Numeric: Choose: Adjacent, L, H](implicit wl: WitnessAs[L, T], @@ -81,8 +81,8 @@ trait NumericInstances { ): Arbitrary[F[T, Interval.Closed[L, H]]] = rangeClosedArbitrary(wl.snd, wh.snd) - /// The following functions are private because it is not guaranteed - /// that they produce valid values according to the predicate `P`. + // / The following functions are private because it is not guaranteed + // / that they produce valid values according to the predicate `P`. private def rangeOpenArbitrary[F[_, _]: RefType, T: Numeric: Choose, P](min: T, max: T)(implicit at: Adjacent[T]