Skip to content

Commit

Permalink
Make minor improvements to Invoke tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Apr 15, 2024
1 parent d82a491 commit d8a6b8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def ruff(c, fix=False, diff=False):
fix_flag = "--fix"
if diff:
diff_flag = "--diff"
c.run(f"{CMD_PREFIX}ruff check {diff_flag} {fix_flag} .")
c.run(f"{CMD_PREFIX}ruff check {diff_flag} {fix_flag} .", pty=PTY)


@task
Expand Down Expand Up @@ -70,8 +70,8 @@ def setup(c):
"""Set up the development environment."""
if which("pdm") or ACTIVE_VENV:
tools(c)
c.run(f"{CMD_PREFIX}python -m pip install --upgrade pip")
c.run(f"{PDM} install")
c.run(f"{CMD_PREFIX}python -m pip install --upgrade pip", pty=PTY)
c.run(f"{PDM} update --dev", pty=PTY)
precommit(c)
logger.info("\nDevelopment environment should now be set up and ready!\n")
else:
Expand Down

0 comments on commit d8a6b8c

Please sign in to comment.