Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scalafmt-core to 3.9.0 #321

Merged
merged 3 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ fb2b38eaaf64326eac0c53fb297b08cdf9f3cba6

# Scala Steward: Reformat with scalafmt 3.7.3
4d46123397e5fdc126e4680cafac078e8181f675

# Scala Steward: Reformat with scalafmt 3.9.0
db5a13ef3ea7d0177d652be71944f5543e33efcc
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.6
version = 3.9.0
runner.dialect = scala213source3
fileOverride."glob:**.sc".runner.dialect = scala213
project.git = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object TestPodSpec {
val alpine: PodSpec = alpine(None)

def alpine(command: Seq[String]): PodSpec = alpine(command.some)

private def alpine(command: Option[Seq[String]]): PodSpec = PodSpec(
containers = Seq(
Container(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ class AuthorizationCacheTest extends FunSuite {
auth = mkAuthorization(
expirationTimestamp = IO.realTimeInstant.map(_.minusSeconds(10).some),
token = shouldFail.get.flatMap { shouldFail =>
if (shouldFail) {
if (shouldFail)
IO.raiseError(new RuntimeException("test failure"))
} else {
else
counter.getAndUpdate(_ + 1).map(i => s"test-token-$i")
}
}
)
cache <- AuthorizationCache[IO](retrieve = auth)
Expand All @@ -126,11 +125,10 @@ class AuthorizationCacheTest extends FunSuite {
auth = mkAuthorization(
expirationTimestamp = IO.realTimeInstant.map(_.minusSeconds(10).some),
token = shouldFail.get.flatMap { shouldFail =>
if (shouldFail) {
if (shouldFail)
IO.raiseError(new RuntimeException("test failure"))
} else {
else
counter.getAndUpdate(_ + 1).map(i => s"test-token-$i")
}
}
)
cache <- AuthorizationCache[IO](retrieve = auth)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.goyeau.kubernetes.client.operation

import cats.Applicative
import cats.implicits._
import cats.implicits.*
import com.goyeau.kubernetes.client.KubernetesClient
import com.goyeau.kubernetes.client.Utils.retry
import io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta
Expand Down Expand Up @@ -54,10 +54,13 @@ trait ReplaceableTests[F[_], Resource <: { def metadata: Option[ObjectMeta] }]
test(s"replace a $resourceName with resource") {
usingMinikube { implicit client =>
for {
namespaceName <- Applicative[F].pure(resourceName.toLowerCase)
resourceName <- Applicative[F].pure("some-with-resource")
_ <- createChecked(namespaceName, resourceName)
replacedResource <- retry(replaceWithResource(namespaceName, resourceName), actionClue = Some("Replacing resource with resource"))
namespaceName <- Applicative[F].pure(resourceName.toLowerCase)
resourceName <- Applicative[F].pure("some-with-resource")
_ <- createChecked(namespaceName, resourceName)
replacedResource <- retry(
replaceWithResource(namespaceName, resourceName),
actionClue = Some("Replacing resource with resource")
)
_ = checkUpdated(replacedResource)
retrievedResource <- getChecked(namespaceName, resourceName)
_ = checkUpdated(retrievedResource)
Expand Down
Loading