diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..9e737a1 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Scala Steward: Reformat with scalafmt 3.10.2 +d9b88f7113f0d5b2be6f8ae07d531823672b089f diff --git a/.scalafmt.conf b/.scalafmt.conf index 6c1b22d..4b11d65 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 3.8.6 +version = 3.10.2 maxColumn = 140 rewrite.rules = [RedundantBraces, RedundantParens, SortImports] runner.dialect = scala3 \ No newline at end of file diff --git a/core/src/main/scala/chimp/McpHandler.scala b/core/src/main/scala/chimp/McpHandler.scala index 0e22d6a..3882d61 100644 --- a/core/src/main/scala/chimp/McpHandler.scala +++ b/core/src/main/scala/chimp/McpHandler.scala @@ -158,7 +158,7 @@ class McpHandler[F[_]]( // For each sub-request, process as a single request using flatMap/fold (no .sequence) def processBatch(reqs: List[JSONRPCMessage], acc: List[JSONRPCMessage]): F[List[JSONRPCMessage]] = reqs match - case Nil => acc.reverse.unit + case Nil => acc.reverse.unit case head :: tail => head match case JSONRPCMessage.Notification(_, _, _) => diff --git a/examples/src/main/scala/chimp/weatherMcp.scala b/examples/src/main/scala/chimp/weatherMcp.scala index bb0d109..ce97147 100644 --- a/examples/src/main/scala/chimp/weatherMcp.scala +++ b/examples/src/main/scala/chimp/weatherMcp.scala @@ -75,7 +75,7 @@ private def geocodeCity(city: String, backend: SyncBackend): Either[String, Nomi val nominatimUrl = uri"https://nominatim.openstreetmap.org/search?format=json&limit=1&q=$city" val geoResp = basicRequest.get(nominatimUrl).header("User-Agent", "chimp-weather-tool").send(backend) geoResp.body match - case Left(_) => Left(s"Failed to contact geocoding service: ${geoResp.code}") + case Left(_) => Left(s"Failed to contact geocoding service: ${geoResp.code}") case Right(body) => decode[List[NominatimResult]](body) match case Left(err) => Left(s"Failed to decode geocoding response: $err") @@ -87,7 +87,7 @@ private def fetchWeather(lat: String, lon: String, backend: SyncBackend): Either val meteoUrl = uri"https://api.open-meteo.com/v1/forecast?latitude=$lat&longitude=$lon¤t_weather=true" val meteoResp = basicRequest.get(meteoUrl).send(backend) meteoResp.body match - case Left(_) => Left(s"Failed to contact weather service: ${meteoResp.code}") + case Left(_) => Left(s"Failed to contact weather service: ${meteoResp.code}") case Right(body) => decode[OpenMeteoResponse](body) match case Left(err) => Left(s"Failed to decode weather response: $err")