Skip to content

Commit

Permalink
Add venv dep in autoformat/checkstyle rules
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Apr 7, 2018
1 parent c966dee commit e11fde2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ env.AlwaysBuild("release")


black_cmd = "black pythonscript tools/*.py tests/*/*.py SConstruct platforms/*/SCsub"
autoformat = env.PythonCommand("autoformat", None, black_cmd)
autoformat = env.PythonCommand("autoformat", [venv_dir], black_cmd)
env.Alias("black", autoformat)
env.AlwaysBuild("black")
checkformat = env.PythonCommand("checkstyle", None, black_cmd + " --check")
env.PythonCommand("checkstyle", [venv_dir], black_cmd + " --check")

0 comments on commit e11fde2

Please sign in to comment.