Skip to content

Commit a00c80a

Browse files
committed
Use scalafmt.
1 parent 88c7a22 commit a00c80a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.mill

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import mill._, scalalib._, scalanativelib._, publish._
88
import mill.scalalib.api.ZincWorkerUtil
99
import com.github.lolgab.mill.mima._
1010
import de.tobiasroeser.mill.vcs.version.VcsVersion
11+
import mill.scalalib.scalafmt.ScalafmtModule
12+
1113

1214
val communityBuildDottyVersion = sys.props.get("dottyVersion").toList
1315

@@ -117,7 +119,7 @@ trait OsLibModule
117119
}
118120
}
119121

120-
trait OsModule extends OsLibModule { outer =>
122+
trait OsModule extends OsLibModule with ScalafmtModule { outer =>
121123
def ivyDeps = Agg(Deps.geny, Deps.collectionCompact)
122124
override def compileIvyDeps = T {
123125
val scalaReflectOpt = Option.when(!ZincWorkerUtil.isDottyOrScala3(scalaVersion()))(

os/test/src/ZipOpTests.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ object ZipOpTests extends TestSuite {
8181
dest = wd / "zipByExcludingCertainFiles"
8282
)
8383
val paths = os.walk(outputZipFilePath).sorted
84-
val expected = Seq(wd / "zipByExcludingCertainFiles/File.amx", wd / "zipByExcludingCertainFiles")
84+
val expected =
85+
Seq(wd / "zipByExcludingCertainFiles/File.amx", wd / "zipByExcludingCertainFiles")
8586
assert(paths == expected)
8687
}
8788

@@ -171,7 +172,7 @@ object ZipOpTests extends TestSuite {
171172
val expected = Seq(
172173
wd / "unzipAllExceptExcludingCertainFiles/File.txt",
173174
wd / "unzipAllExceptExcludingCertainFiles/one.txt",
174-
wd / "folder1",
175+
wd / "folder1"
175176
)
176177

177178
assert(paths == expected)

0 commit comments

Comments
 (0)