Skip to content

Commit

Permalink
Update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell committed Sep 17, 2024
1 parent 463d6a2 commit b56bb59
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync --dev
run: uv sync --no-dev --extra test

- name: Install Specific Django ${{ matrix.django-version }}
run: uv add django==${{ matrix.django-version }}
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python_version := "3.12"

# Run the Django development server
run:
@just sync
uv run --python {{python_version}} example/manage.py runserver

# Make migrations
Expand Down Expand Up @@ -46,6 +47,10 @@ coverage:
uv run --python {{python_version}} coverage run -m pytest
uv run --python {{python_version}} coverage report --show-missing

# Sync the package
sync:
uv sync --python {{python_version}} --all-extras

# Build the package
build:
uv build
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Homepage = "https://github.com/stuartmaxwell/djpress"
Repository = "https://github.com/stuartmaxwell/djpress"
Issues = "https://github.com/stuartmaxwell/djpress/issues"

[project.optional-dependencies]
test = ["pytest>=8.3.3", "pytest-django>=4.9.0"]

[tool.ruff.lint]
select = ["ALL"]
ignore = [
Expand Down Expand Up @@ -66,8 +69,6 @@ python_files = "tests.py test_*.py *_tests.py"
dev-dependencies = [
"coverage>=7.6.1",
"django-debug-toolbar>=4.4.6",
"pytest-django>=4.9.0",
"pytest>=8.3.3",
"tox-uv>=1.11.3",
]

Expand Down
12 changes: 8 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b56bb59

Please sign in to comment.