Skip to content

Use tox-uv-bare instead of tox-uv #326

Open

Description

@coretl

As we already have uv in the environment

Activity

  1. coretl commented on Feb 25, 2026

    @coretl
    ContributorAuthor

    Switching this over in ophyd-async gives the following:

    tests: FAIL ✖ in 0.02 seconds
    tests: commands[0]> pytest --cov=ophyd_async --cov-report term --cov-report xml:cov.xml
    tests: failed with pytest is not allowed, use allowlist_externals to allow it
    pre-commit: FAIL ✖ in 0.03 seconds
    pre-commit: commands[0]> pre-commit run --all-files --show-diff-on-failure
    pre-commit: failed with pre-commit is not allowed, use allowlist_externals to allow it
    docs: FAIL ✖ in 0.03 seconds
    docs: commands[0]> sphinx-build --fresh-env --show-traceback --fail-on-warning --keep-going docs build/html
    docs: failed with sphinx-build is not allowed, use allowlist_externals to allow it
    type-checking: commands[0]> pyright src --pythonpath /cache/venv-for/dls/science/users/tmc43/repos/ophyd-async/bin/python
    type-checking: failed with pyright is not allowed, use allowlist_externals to allow it
      pre-commit: FAIL code 1 (0.03 seconds)
      type-checking: FAIL code 1 (0.03 seconds)
      tests: FAIL code 1 (0.02 seconds)
      docs: FAIL code 1 (0.03 seconds)
      evaluation failed :( (0.09 seconds)
    

    Need to add to allowlist_externals to make this work:

    [tool.tox.env_run_base]
    # Allow binaries from the base env to be run
    allowlist_externals = [
        "pytest",
        "pre-commit",
        "sphinx-build",
        "sphinx-autobuild",
        "pyright",  # or mypy
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions