Skip to content

Commit

Permalink
feat: Use uv to install stuff (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored May 6, 2024
1 parent 10ebc4e commit f78094d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f78094d

Please sign in to comment.