Skip to content

Commit e9e05a8

Browse files
adjust nox commands to avoid building project
1 parent ed47b68 commit e9e05a8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Run pre-commit
4848
run: |
4949
SKIP=no-commit-to-branch \
50-
uv run --no-binary-package django-language-server nox --session lint
50+
uv run --no-project --with "nox[uv]" nox --session lint
5151
5252
rustfmt:
5353
runs-on: ubuntu-24.04

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
env:
5151
OS: ${{ inputs.os }}
5252
run: |
53-
uv run --no-binary-package django-language-server nox --session gha_matrix -- "${OS}"
53+
uv run --no-project --with "nox[uv]" nox --session gha_matrix -- "${OS}"
5454
5555
test:
5656
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} (${{ matrix.os }})
@@ -79,7 +79,7 @@ jobs:
7979
DJANGO_VERSION: ${{ matrix.django-version }}
8080
PYTHON_VERSION: ${{ matrix.python-version }}
8181
run: |
82-
uv run --no-binary-package django-language-server nox --session "tests(python='${PYTHON_VERSION}', django='${DJANGO_VERSION}')"
82+
uv run --no-project --with "nox[uv]" nox --session "tests(python='${PYTHON_VERSION}', django='${DJANGO_VERSION}')"
8383
8484
tests:
8585
runs-on: ubuntu-latest

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ default:
1111

1212
[private]
1313
cog:
14-
uv run --no-binary-package django-language-server --with cogapp --with nox --no-project cog -r CONTRIBUTING.md README.md pyproject.toml
14+
uv run --no-project --with cogapp --with nox --no-project cog -r CONTRIBUTING.md README.md pyproject.toml
1515

1616
[private]
1717
nox SESSION *ARGS:
18-
uv run --no-binary-package django-language-server nox --session "{{ SESSION }}" -- "{{ ARGS }}"
18+
uv run --no-project --with "nox[uv]" nox --session "{{ SESSION }}" -- "{{ ARGS }}"
1919

2020
bumpver *ARGS:
2121
uv run --with bumpver bumpver {{ ARGS }}

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
import json
44
import os
5-
import platform
65
import re
76
from pathlib import Path
87

98
import nox
10-
from bumpver.version import to_pep440
119

1210
nox.options.default_venv_backend = "uv|virtualenv"
1311
nox.options.reuse_existing_virtualenvs = True
@@ -276,6 +274,8 @@ def release(session):
276274

277275

278276
def get_version(session):
277+
from bumpver.version import to_pep440
278+
279279
command = ["uv", "run", "bumpver", "update", "--dry", "--no-fetch"]
280280
if session.posargs:
281281
args = []

0 commit comments

Comments
 (0)