Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei.winitzki committed Nov 22, 2023
1 parent d250a8b commit 6e50588
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ Solutions for exercises in the book "Science of functional programming"
Solutions for each chapter is a submodule in this project.

Common code may be put into the `common` submodule.

# Code formatting

The GitHub job will verify that all code is properly formatted.

To reformat code, run the script:

`bash reformat_all_code.sh`

36 changes: 12 additions & 24 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ val scalaV = scala2V
val munitTest = "org.scalameta" %% "munit" % "0.7.29" % Test
def munitFramework = new TestFramework("munit.Framework")


val assertVerboseTest = "com.eed3si9n.expecty" %% "expecty" % "0.16.0" % Test

val assertVerboseTest = "com.eed3si9n.expecty" %% "expecty" % "0.16.0" % Test

lazy val root = (project in file("."))
.settings(scalaVersion := scalaV, crossScalaVersions := Seq(scalaV), name := "sofp-solutions-root")
Expand All @@ -21,10 +19,7 @@ lazy val chapter01 = (project in file("chapter01"))
Test / fork := false,
scalafmtFailOnErrors := false,
testFrameworks += munitFramework,
libraryDependencies ++= Seq(
munitTest,
assertVerboseTest,
),
libraryDependencies ++= Seq(munitTest, assertVerboseTest),
).dependsOn(common)

lazy val chapter02 = (project in file("chapter02"))
Expand All @@ -35,22 +30,15 @@ lazy val chapter02 = (project in file("chapter02"))
Test / fork := false,
scalafmtFailOnErrors := false,
testFrameworks += munitFramework,
libraryDependencies ++= Seq(
munitTest,
assertVerboseTest,
),
libraryDependencies ++= Seq(munitTest, assertVerboseTest),
).dependsOn(common)

lazy val common = (project in file("common"))
.settings(
scalaVersion := scalaV,
crossScalaVersions := Seq(scala2V, scala3V),
Test / parallelExecution := true,
Test / fork := false,
scalafmtFailOnErrors := false,
testFrameworks += munitFramework,
libraryDependencies ++= Seq(
munitTest,
assertVerboseTest,
),
)
lazy val common = (project in file("common")).settings(
scalaVersion := scalaV,
crossScalaVersions := Seq(scala2V, scala3V),
Test / parallelExecution := true,
Test / fork := false,
scalafmtFailOnErrors := false,
testFrameworks += munitFramework,
libraryDependencies ++= Seq(munitTest, assertVerboseTest),
)

0 comments on commit 6e50588

Please sign in to comment.