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 3.8.3 #6

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.2
version = 3.8.3
runner.dialect = scala213
style = default
maxColumn = 120
Expand Down
10 changes: 5 additions & 5 deletions src/main/g8/project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import sbt._

object Dependencies {
private val prod = Seq(
"com.github.nscala-time" %% "nscala-time" % "$nscala-time_version$",
"com.lihaoyi" %% "pprint" % "$pprint_version$",
"org.apache.spark" %% "spark-core" % "$spark_version$" % Provided,
"org.apache.spark" %% "spark-sql" % "$spark_version$" % Provided,
"org.apache.spark" %% "spark-streaming" % "$spark_version$" % Provided
"com.github.nscala-time" %% "nscala-time" % "$nscala-time_version$",
"com.lihaoyi" %% "pprint" % "$pprint_version$",
"org.apache.spark" %% "spark-core" % "$spark_version$" % Provided,
"org.apache.spark" %% "spark-sql" % "$spark_version$" % Provided,
"org.apache.spark" %% "spark-streaming" % "$spark_version$" % Provided
)
private val test = Seq(
"org.scalatest" %% "scalatest" % "$scalatest_version$",
Expand Down
12 changes: 4 additions & 8 deletions src/main/g8/src/test/$package$/SparkTestHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ import java.io.File
import java.nio.file.Files
import scala.reflect.io.Directory

trait SparkTestHelper
extends AnyWordSpec
with BeforeAndAfterEach
with BeforeAndAfterAll
with Matchers {
trait SparkTestHelper extends AnyWordSpec with BeforeAndAfterEach with BeforeAndAfterAll with Matchers {

private val sparkSession = SparkSession
.builder()
.master("local[*]")
.appName("test-spark-session")
.config(sparkConfiguration)
//.enableHiveSupport() uncomment this if you want to use Hive
// .enableHiveSupport() uncomment this if you want to use Hive
.getOrCreate()

protected var tempDir: String = _
Expand All @@ -33,14 +29,14 @@ trait SparkTestHelper

protected def sparkConfiguration: SparkConf =
new SparkConf()
/* Uncomment this if you want to use Delta Lake
/* Uncomment this if you want to use Delta Lake

.set("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")
.set(
"spark.sql.catalog.spark_catalog",
"org.apache.spark.sql.delta.catalog.DeltaCatalog"
)
*/
*/

override protected def beforeAll(): Unit = {
super.beforeAll()
Expand Down