Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Justfile commands use .venv/bin/... paths to execute Python tools and use outdated args="" parameter syntax.

What is the new behavior?

All Python tool invocations now use uv run for tool execution. All recipes accepting arguments now use variadic *args: syntax.

Changed Files

pytest.justfile

  • uv run pytest replaces .venv/bin/pytest
  • Removed hardcoded tests path (pytest auto-discovers)
  • All recipes use *args:

ty.justfile

  • uv run ty replaces .venv/bin/ty
  • Converted to *args:

ruff.justfile

  • Removed RUFF_EXE variable entirely
  • uv run ruff replaces {{RUFF_EXE}}
  • All recipes use *args:

mypy.justfile

  • uv run mypy replaces bare mypy calls
  • Converted to *args:

bandit.justfile

  • uv run bandit replaces .venv/bin/bandit

safety.justfile

  • uv run safety replaces bare safety calls

Example

Before:

pytest args="":
    .venv/bin/pytest tests {{args}}

After:

pytest *args:
    uv run pytest {{args}}

Does this introduce a breaking change?

  • Yes
  • No

Other information

Commands like just pytest, just ruff-check, etc. work identically but no longer require a pre-existing .venv/bin directory.

Original prompt

The .justfile collection in this repository currently contains commands that rely on .venv/bin/... paths for executing Python tools like pytest, ty, ruff, and more. These commands need to be updated to use uv run ... instead for compatibility and adherence to modern standards. Additionally, update any args="" declarations to use variadic arguments syntax (*args:).

Changes to Include:

  1. Replace .venv/bin/... with uv run ... for all applicable cases.
  2. Remove hardcoded file paths like tests in commands where pytest or other tools dynamically detect paths.
  3. Adjust any args="" to *args: to correctly handle variadic arguments.

Specific Updates to Files:

  • pytest.justfile: Switch .venv/bin/pytest to uv run pytest, remove hardcoded tests, and adjust args syntax.
  • ty.justfile: Replace .venv/bin/ty with uv run ty and update variadic arguments syntax.
  • ruff.justfile: Change RUFF_EXE or similar to uv run ruff and fix args.
  • mypy.justfile: Replace mypy with uv run mypy and convert to variadic syntax.
  • bandit.justfile: Adapt .venv/bin/bandit to uv run bandit and args.
  • safety.justfile: Update safety commands to uv run safety and variadic structure.

Files Verified as Requiring No Changes:

  • uv.justfile
  • just.justfile
  • sshx.justfile
  • ubuntu.justfile

Once implemented, these changes will ensure consistency, cleaner syntax, and better maintainability.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@woutervh woutervh marked this pull request as ready for review January 8, 2026 19:46
…c args

Co-authored-by: woutervh <469509+woutervh@users.noreply.github.com>
Copilot AI requested a review from woutervh as a code owner January 8, 2026 19:49
Copilot AI changed the title [WIP] Update .justfile commands to use uv run Modernize justfiles to use uv run and variadic arguments Jan 8, 2026
@woutervh woutervh merged commit d6e11b9 into main Jan 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants