Skip to content

Commit

Permalink
change mypy cache location
Browse files Browse the repository at this point in the history
  • Loading branch information
jodersky committed Nov 20, 2024
1 parent fb2d1b7 commit 14d2c57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pythonlib/src/mill/pythonlib/PythonModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ trait PythonModule extends Module with TaskModule { outer =>
def typeCheck: T[Unit] = Task {
Task.traverse(moduleDeps)(_.typeCheck)()
runPythonExe(
Task.Anon { Seq("-m", "mypy", "--strict") ++ sources().map(_.path.toString) }
Task.Anon {
// format: off
Seq(
"-m", "mypy",
"--strict",
"--cache-dir", (T.dest / "mypycache").toString
) ++ sources().map(_.path.toString)
// format: on
}
)()
}

Expand Down

0 comments on commit 14d2c57

Please sign in to comment.