Skip to content

Commit

Permalink
shellable => string
Browse files Browse the repository at this point in the history
  • Loading branch information
jodersky committed Jan 25, 2025
1 parent d6cc158 commit 5f16b40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pythonlib/src/mill/pythonlib/RuffModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ trait RuffModule extends PythonModule {
*/
def ruffOptions: T[Seq[String]] = Task { Seq.empty[String] }

// this is an anonymous task, since we want to return a PathRef as
// os.Shellable, instead of only the path
private def configArgs: Task[Seq[os.Shellable]] = Task.Anon {
private def configArgs: Task[Seq[String]] = Task.Anon {
val cfg = ruffConfigFile()
if (os.exists(cfg.path)) Seq[os.Shellable]("--config", cfg) else Seq.empty[os.Shellable]
if (os.exists(cfg.path)) Seq("--config", cfg.toString) else Seq.empty[String]
}

/**
Expand Down

0 comments on commit 5f16b40

Please sign in to comment.