Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 38 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11.0"
python-version: "3.11"
- run: pip install pre-commit
- run: pre-commit run --all-files
env:
Expand All @@ -24,14 +24,43 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9.18", "3.10.13", "3.11.7", "3.12.1" ]
django-version: [ "4.2", "5.0", "5.1" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
django-version: [ "4.2", "5.0", "5.1", "5.2", "6.0" ]
exclude:
# Django v5 drops Python <3.10 support
- django-version: 5.0
python-version: 3.9.18
- django-version: 5.1
python-version: 3.9.18
# Django 4.2 does not support Python 3.13+
- django-version: "4.2"
python-version: "3.13"
- django-version: "4.2"
python-version: "3.14"
# Django 5.x drops Python <3.10 support
- django-version: "5.0"
python-version: "3.8"
- django-version: "5.0"
python-version: "3.9"
- django-version: "5.1"
python-version: "3.8"
- django-version: "5.1"
python-version: "3.9"
- django-version: "5.2"
python-version: "3.8"
- django-version: "5.2"
python-version: "3.9"
# Django 5.0 does not support Python 3.13+
- django-version: "5.0"
python-version: "3.13"
- django-version: "5.0"
python-version: "3.14"
# Django 6.0 requires Python 3.13+
- django-version: "6.0"
python-version: "3.8"
- django-version: "6.0"
python-version: "3.9"
- django-version: "6.0"
python-version: "3.10"
- django-version: "6.0"
python-version: "3.11"
- django-version: "6.0"
python-version: "3.12"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -40,7 +69,7 @@ jobs:
- uses: snok/install-poetry@v1
with:
virtualenvs-create: false
version: 1.2.2
version: 1.8.5
- run: |
pip install virtualenv
virtualenv .venv
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 23.12.1
rev: 26.3.1
hooks:
- id: black
args: ['--quiet']
Expand All @@ -16,7 +16,7 @@ repos:
- id: detect-private-key
- id: double-quote-string-fixer
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies: [
Expand All @@ -31,10 +31,10 @@ repos:
]
args: ['--enable-extensions=G']
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: ["--py36-plus"]
args: ["--py38-plus"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand All @@ -43,7 +43,7 @@ repos:
- id: isort
files: 'tests/.*'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
1 change: 1 addition & 0 deletions demoproj/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.urls import path

from demoproj.views.sync_views import index_view, no_guid, rest_view
Expand Down
1 change: 1 addition & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys

Expand Down
Loading
Loading