Skip to content

Commit

Permalink
Update scalafmt-core to 3.7.17 (#864)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.7.17

* Reformat with scalafmt 3.7.17

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.7.17' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Nov 20, 2023
1 parent f82d167 commit 2176fc5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.7.0
f1189966d61a75d39a8e87508c205487ad434c2e

# Scala Steward: Reformat with scalafmt 3.7.17
22f2fb6f314c5a372a5b8451864716d3470f41ae
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.16"
version = "3.7.17"
runner.dialect = scala213source3
maxColumn = 100

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TimestampConverterSuite extends munit.ScalaCheckSuite {
// zone
"2023-01-01t10:11:12.123456 Europe/London",
"2023-01-01t10:11:12.123456 UTC+01:02",
"2023-01-01t10:11:12.123456 UTC-01:02",
"2023-01-01t10:11:12.123456 UTC-01:02"
// "2023-01-01t10:11:12.123456 UTC+1:2", not possible to get +H:M offset pattern
// "2023-01-01t10:11:12.123456 UTC+1", skipped
).foreach { ts =>
Expand All @@ -46,7 +46,7 @@ class TimestampConverterSuite extends munit.ScalaCheckSuite {
Seq(
"2023-01-02",
"2023-01-2",
"2023-1-2",
"2023-1-2"
).foreach { date =>
try {
TimestampConverter.toLocalDate(date)
Expand Down Expand Up @@ -90,13 +90,13 @@ class TimestampConverterSuite extends munit.ScalaCheckSuite {
"2023-1-1 0:1:2",
// time separator
"2023-01-01T10:11:12.123456",
"2023-01-01t10:11:12.123456",
"2023-01-01t10:11:12.123456"
).foreach { datetime =>
try {
TimestampConverter.toLocalDateTime(datetime)
} catch {
case NonFatal(e) => throw new Exception(s"Failed parsing $datetime", e)
}
try {
TimestampConverter.toLocalDateTime(datetime)
} catch {
case NonFatal(e) => throw new Exception(s"Failed parsing $datetime", e)
}
}
// formatter uses ISO
val javaLocalDateTime = TimestampConverter.toLocalDateTime("2023-01-01 10:11:12.123456")
Expand Down

0 comments on commit 2176fc5

Please sign in to comment.