diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70d0dc4..0d2b44f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,7 +81,7 @@ jobs: env: PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | - pipx install nox + pipx install 'nox[uv]' nox --version - name: Install pre-commit diff --git a/noxfile.py b/noxfile.py index 95f4fd6..1a6409e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -7,6 +7,9 @@ import nox +nox.needs_version = ">=2024.4.15" +nox.options.default_venv_backend = "uv|virtualenv" + STREAM_TYPES = ["REST", "GraphQL"] AUTH_METHODS = [ "Bearer Token", diff --git a/src/pyproject.toml.jinja b/src/pyproject.toml.jinja index aad79a5..1de744e 100644 --- a/src/pyproject.toml.jinja +++ b/src/pyproject.toml.jinja @@ -57,6 +57,9 @@ scripts."[[ tap_package_command_line_name ]]" = "[[ tap_package_import_name ]].t [tool.hatch.version] source = "vcs" +[tool.hatch.envs.default] +installer = "uv" + [tool.hatch.envs.sync.scripts] console = "[[ tap_package_command_line_name ]] {args}" jsonl = "[[ tap_package_command_line_name ]] {args} > [[ tap_package_distribution_name ]].jsonl"