Skip to content

Commit

Permalink
Run scalafix before scalafmt in prePR
Browse files Browse the repository at this point in the history
Since scalafix rewrites source code, the formatting might need some
fixing afterwards.
  • Loading branch information
satabin committed Mar 1, 2024
1 parent 28ca81e commit ecff046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/typelevel/sbt/TypelevelPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ object TypelevelPlugin extends AutoPlugin {

val prePR = List("project /", "githubWorkflowGenerate") ++
List("+headerCreateAll").filter(_ => header) ++
List("+scalafmtAll", "scalafmtSbt").filter(_ => scalafmt) ++
List("+scalafixAll").filter(_ => scalafix)
List("+scalafixAll").filter(_ => scalafix) ++
List("+scalafmtAll", "scalafmtSbt").filter(_ => scalafmt)

val botHook = List("githubWorkflowGenerate") ++
List("+headerCreateAll").filter(_ => header) ++
Expand Down

0 comments on commit ecff046

Please sign in to comment.