Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 24, 2025
1 parent d6cc158 commit 5b20cf3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion example/pythonlib/linting/1-ruff-format/build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ print(IntWrapper(2).plus(IntWrapper(3)).x)
// To reformat all your source files *across all projects*, simply use Mill's task wildcard selector
// `mill __.ruffFormat`


// You can create a `ruff.toml` file in your project root to adjust the
// formatting options as desired. For example,

Expand Down
3 changes: 1 addition & 2 deletions example/pythonlib/linting/2-ruff-check/build.mill
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package build
import mill._, pythonlib._

object `package` extends RootModule with PythonModule with RuffModule {
}
object `package` extends RootModule with PythonModule with RuffModule {}

/** See Also: src/main.py */

Expand Down
1 change: 0 additions & 1 deletion pythonlib/src/mill/pythonlib/CoverageModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ trait CoverageModule extends PythonModule {

}


}
2 changes: 1 addition & 1 deletion pythonlib/src/mill/pythonlib/RuffModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ trait RuffModule extends PythonModule {

// 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[os.Shellable]] = Task.Anon {
val cfg = ruffConfigFile()
if (os.exists(cfg.path)) Seq[os.Shellable]("--config", cfg) else Seq.empty[os.Shellable]
}
Expand Down

0 comments on commit 5b20cf3

Please sign in to comment.