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 2.7.0 #543

Merged
merged 2 commits into from Sep 9, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
@@ -1,4 +1,4 @@
version = 2.6.4
version = 2.7.0
style = defaultWithAlign
maxColumn = 100

Expand Down
4 changes: 2 additions & 2 deletions github4s/src/main/scala/github4s/Decoders.scala
Expand Up @@ -101,8 +101,8 @@ object Decoders {
`private` = priv,
description = description,
fork = fork,
urls = (RepoUrlKeys.allFields zip repoUrls.flatten map {
case (urlName, value) => urlName -> value
urls = (RepoUrlKeys.allFields zip repoUrls.flatten map { case (urlName, value) =>
urlName -> value
}).toMap
)
}
Expand Down
Expand Up @@ -158,8 +158,8 @@ class RepositoriesInterpreter[F[_]: Functor](implicit
"author" -> author,
"since" -> since,
"until" -> until
).collect {
case (key, Some(value)) => key -> value
).collect { case (key, Some(value)) =>
key -> value
},
pagination
)
Expand All @@ -177,8 +177,8 @@ class RepositoriesInterpreter[F[_]: Functor](implicit
headers,
Map(
"protected" -> onlyProtected.map(_.toString)
).collect {
case (key, Some(value)) => key -> value
).collect { case (key, Some(value)) =>
key -> value
},
pagination
)
Expand All @@ -196,8 +196,8 @@ class RepositoriesInterpreter[F[_]: Functor](implicit
headers,
Map(
"anon" -> anon
).collect {
case (key, Some(value)) => key -> value
).collect { case (key, Some(value)) =>
key -> value
},
pagination
)
Expand All @@ -215,8 +215,8 @@ class RepositoriesInterpreter[F[_]: Functor](implicit
headers,
Map(
"affiliation" -> affiliation
).collect {
case (key, Some(value)) => key -> value
).collect { case (key, Some(value)) =>
key -> value
},
pagination
)
Expand Down
7 changes: 3 additions & 4 deletions github4s/src/test/scala/github4s/integration/ReposSpec.scala
Expand Up @@ -88,10 +88,9 @@ trait ReposSpec extends BaseIntegrationSpec {
.use(identity)
.unsafeRunSync()

forAll(responseList) {
case (release, response) =>
testIsRight[Option[Release]](response, r => r should contain(release))
response.statusCode shouldBe okStatusCode
forAll(responseList) { case (release, response) =>
testIsRight[Option[Release]](response, r => r should contain(release))
response.statusCode shouldBe okStatusCode
}
}

Expand Down