Skip to content

Commit 8f50e27

Browse files
add nox to dev dep group and remove script metadata from noxfile.py (#164)
1 parent 8dadb15 commit 8f50e27

File tree

6 files changed

+100
-17
lines changed

6 files changed

+100
-17
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 noxfile.py --session lint
50+
uv run 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 noxfile.py --session gha_matrix -- "${OS}"
53+
uv run nox --session gha_matrix -- "${OS}"
5454
5555
test:
5656
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }} (${{ matrix.os }})
@@ -77,7 +77,7 @@ jobs:
7777
DJANGO_VERSION: ${{ matrix.django-version }}
7878
PYTHON_VERSION: ${{ matrix.python-version }}
7979
run: |
80-
uv run noxfile.py --session "tests(python='${PYTHON_VERSION}', django='${DJANGO_VERSION}')"
80+
uv run nox --session "tests(python='${PYTHON_VERSION}', django='${DJANGO_VERSION}')"
8181
8282
tests:
8383
runs-on: ubuntu-latest

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cog:
1515

1616
[private]
1717
nox SESSION *ARGS:
18-
uv run noxfile.py --session "{{ SESSION }}" -- "{{ ARGS }}"
18+
uv run nox --session "{{ SESSION }}" -- "{{ ARGS }}"
1919

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

noxfile.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
#!/usr/bin/env -S uv run --quiet
2-
# /// script
3-
# requires-python = ">=3.13"
4-
# dependencies = [
5-
# "bumpver",
6-
# "nox",
7-
# ]
8-
# ///
9-
101
from __future__ import annotations
112

123
import json
@@ -289,7 +280,3 @@ def get_version(session):
289280
output = session.run(*command, silent=True)
290281
match = re.search(r"New Version: (.+)", output)
291282
return to_pep440(match.group(1)) if match else None
292-
293-
294-
if __name__ == "__main__":
295-
nox.main()

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dev = [
88
"cogapp>=3.4.1",
99
"django-stubs>=5.1.1",
1010
"maturin>=1.7.8",
11+
"nox>=2025.5.1",
1112
"ruff>=0.8.2",
1213
]
1314
docs = [

uv.lock

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)