-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* β add scalafix plugin * π§ Enabled semanticDb for scalafix. * π§ removedUnused not supported in Scala 3.3.1 * π¨ Ran OrganizeImports via Scalafix * π Added instructions for scalafix * β»οΈ Remove unused imports in some files. * β»οΈ Refactored build.sbt * π· Added more settings to build.sbt * π· Run organiseImports check in github workflow * π· Added distribution value for java * π· Added zulu java distrobution * π· Replaced jvm with java-version * π· Fixed scalafix rule for the check * π§ͺ Ensure scalafix is enforced * π· Add --check flag to scalafix workflow * π· Ran OrganizeImports so workfow check will pass * π· Try to switch to scalafmt * π Moved tests to folder that sbt checks * β Added test dependency * π· Switched to sbt for running tests * β add scalafmt plugin * π¨ * π· Try workflow without extra java setup step. * π· Removed quotes for sbt test command. --------- Co-authored-by: ff137 <[email protected]>
- Loading branch information
1 parent
b30b9e0
commit a378594
Showing
27 changed files
with
191 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
OrganizeImports.removeUnused = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,61 @@ | ||
scalaVersion := "3.3.1" | ||
|
||
scalacOptions ++= Seq("-Xmax-inlines", "50") | ||
lazy val circeVersion = "0.14.6" | ||
lazy val pureconfigVersion = "0.17.4" | ||
lazy val redis4CatsVersion = "1.5.2" | ||
lazy val sttpClient3Version = "3.9.1" | ||
lazy val langchain4jVersion = "0.23.0" | ||
lazy val xefVersion = "0.0.3" | ||
|
||
val circeVersion = "0.14.6" | ||
val pureconfigVersion = "0.17.4" | ||
val redis4CatsVersion = "1.5.2" | ||
val sttpClient3Version = "3.9.1" | ||
val langchain4jVersion = "0.23.0" | ||
val xefVersion = "0.0.3" | ||
lazy val root = (project in file(".")) | ||
.settings( | ||
settings, | ||
libraryDependencies ++= Seq( | ||
"io.circe" %% "circe-core" % circeVersion, | ||
"io.circe" %% "circe-parser" % circeVersion, | ||
"io.circe" %% "circe-generic" % circeVersion, | ||
"com.github.pureconfig" %% "pureconfig-core" % pureconfigVersion, | ||
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureconfigVersion, | ||
"dev.profunktor" %% "redis4cats-effects" % redis4CatsVersion, | ||
"dev.profunktor" %% "redis4cats-log4cats" % redis4CatsVersion, | ||
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-M6", | ||
"com.softwaremill.sttp.client3" %% "core" % sttpClient3Version, | ||
"com.softwaremill.sttp.client3" %% "circe" % sttpClient3Version, | ||
"com.softwaremill.sttp.client3" %% "async-http-client-backend-cats" % sttpClient3Version, | ||
"de.brendamour" % "jpasskit" % "0.3.3", | ||
"com.outr" %% "scribe" % "3.12.2", | ||
"com.lihaoyi" %% "upickle" % "3.1.3", | ||
"dev.langchain4j" % "langchain4j" % langchain4jVersion, | ||
"dev.langchain4j" % "langchain4j-hugging-face" % langchain4jVersion, | ||
"com.xebia" %% "xef-scala" % xefVersion, | ||
"com.xebia" % "xef-pdf" % xefVersion, | ||
"com.xebia" % "xef-reasoning-jvm" % xefVersion, | ||
"com.xebia" % "xef-openai" % xefVersion, | ||
"ch.qos.logback" % "logback-classic" % "1.4.11", | ||
"org.apache.logging.log4j" % "log4j-core" % "2.21.1", | ||
"org.typelevel" %% "log4cats-slf4j" % "2.6.0", | ||
"co.fs2" %% "fs2-core" % "3.9.3", | ||
"org.typelevel" %% "munit-cats-effect" % "2.0.0-M4" % "test" | ||
) | ||
) | ||
|
||
libraryDependencies ++= Seq( | ||
"io.circe" %% "circe-core" % circeVersion, | ||
"io.circe" %% "circe-parser" % circeVersion, | ||
"io.circe" %% "circe-generic" % circeVersion, | ||
"com.github.pureconfig" %% "pureconfig-core" % pureconfigVersion, | ||
"com.github.pureconfig" %% "pureconfig-cats-effect" % pureconfigVersion, | ||
"dev.profunktor" %% "redis4cats-effects" % redis4CatsVersion, | ||
"dev.profunktor" %% "redis4cats-log4cats" % redis4CatsVersion, | ||
"com.softwaremill.sttp.client4" %% "core" % "4.0.0-M6", | ||
"com.softwaremill.sttp.client3" %% "core" % sttpClient3Version, | ||
"com.softwaremill.sttp.client3" %% "circe" % sttpClient3Version, | ||
"com.softwaremill.sttp.client3" %% "async-http-client-backend-cats" % sttpClient3Version, | ||
"de.brendamour" % "jpasskit" % "0.3.3", | ||
"com.outr" %% "scribe" % "3.12.2", | ||
"com.lihaoyi" %% "upickle" % "3.1.3", | ||
"dev.langchain4j" % "langchain4j" % langchain4jVersion, | ||
"dev.langchain4j" % "langchain4j-hugging-face" % langchain4jVersion, | ||
"com.xebia" %% "xef-scala" % xefVersion, | ||
"com.xebia" % "xef-pdf" % xefVersion, | ||
"com.xebia" % "xef-reasoning-jvm" % xefVersion, | ||
"com.xebia" % "xef-openai" % xefVersion, | ||
"ch.qos.logback" % "logback-classic" % "1.4.11", | ||
"org.apache.logging.log4j" % "log4j-core" % "2.21.1", | ||
"org.typelevel" %% "log4cats-slf4j" % "2.6.0", | ||
"co.fs2" %% "fs2-core" % "3.9.3" | ||
// Settings | ||
lazy val compilerOptions = Seq( | ||
"-Xmax-inlines", | ||
"50", | ||
"-unchecked", // Enable additional warnings where generated code depends on assumptions. | ||
"-feature", // Emit warning and location for usages of features that should be imported explicitly. | ||
"-language:existentials", // Existential types (besides wildcard types) can be written and inferred | ||
"-language:higherKinds", // Allow higher-kinded types | ||
"-language:implicitConversions", // Allow definition of implicit functions called views | ||
"-language:postfixOps", // Allow postfix operator notation, such as 1 to 10 toList (not recommended) | ||
"-deprecation" | ||
) | ||
|
||
lazy val commonSettings = Seq( | ||
scalacOptions ++= compilerOptions | ||
) | ||
|
||
lazy val scalafixSettings = Seq(semanticdbEnabled := true) | ||
|
||
lazy val settings = commonSettings ++ scalafixSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
|
||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
src/main/scala/xyz/didx/ai/embedding/EmbeddingHandler.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/main/scala/xyz/didx/ai/handler/ConfirmOnboardingResult.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.