mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-20 10:52:34 +03:00
Merge branch 'main' into pyup-update-ruff-0.12.12-to-0.13.0
# Conflicts: # pyproject.toml # uv.lock
This commit is contained in:
commit
e71ddc0753
5
.github/contributors.json
vendored
5
.github/contributors.json
vendored
|
@ -1758,5 +1758,10 @@
|
|||
"name": "Maurício Gioachini",
|
||||
"github_login": "MauGx3",
|
||||
"twitter_username": ""
|
||||
},
|
||||
{
|
||||
"name": "Donghoon Nam",
|
||||
"github_login": "codenamenam",
|
||||
"twitter_username": ""
|
||||
}
|
||||
]
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -103,6 +103,6 @@ jobs:
|
|||
run: uv sync --locked
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
node-version: "24.7"
|
||||
node-version: "24.8"
|
||||
- name: Bare Metal ${{ matrix.script.name }}
|
||||
run: sh tests/test_bare.sh ${{ matrix.script.args }}
|
||||
|
|
|
@ -3,6 +3,13 @@ All enhancements and patches to Cookiecutter Django will be documented in this f
|
|||
|
||||
<!-- GENERATOR_PLACEHOLDER -->
|
||||
|
||||
## 2025.09.10
|
||||
|
||||
|
||||
### Updated
|
||||
|
||||
- Bump traefik from 3.5.1 to 3.5.2 ([#6041](https://github.com/cookiecutter/cookiecutter-django/pull/6041))
|
||||
|
||||
## 2025.09.09
|
||||
|
||||
|
||||
|
|
|
@ -803,6 +803,13 @@ Listed in alphabetical order.
|
|||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Donghoon Nam</td>
|
||||
<td>
|
||||
<a href="https://github.com/codenamenam">codenamenam</a>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Douglas</td>
|
||||
<td>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "cookiecutter-django"
|
||||
version = "2025.09.09"
|
||||
version = "2025.09.10"
|
||||
description = "A Cookiecutter template for creating production-ready Django projects quickly."
|
||||
readme = "README.md"
|
||||
keywords = [
|
||||
|
@ -44,7 +44,7 @@ dependencies = [
|
|||
"pyyaml==6.0.2",
|
||||
"requests==2.32.5",
|
||||
"ruff==0.13.0",
|
||||
"sh==2.1; sys_platform!='win23'",
|
||||
"sh==2.2.2; sys_platform!='win23'",
|
||||
"tox==4.30.2",
|
||||
"tox-uv>=1.17",
|
||||
]
|
||||
|
@ -125,14 +125,6 @@ lint.ignore = [
|
|||
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
|
||||
"SIM102", # sometimes it's better to nest
|
||||
"TRY003", # Avoid specifying long messages outside the exception class
|
||||
# Checks for uses of isinstance/issubclass that take a tuple of types for comparison.
|
||||
# Deactivated because it can make the code slow: https://github.com/astral-sh/ruff/issues/7871
|
||||
"UP038",
|
||||
]
|
||||
# The fixes in extend-unsafe-fixes will require
|
||||
# provide the `--unsafe-fixes` flag when fixing.
|
||||
lint.extend-unsafe-fixes = [
|
||||
"UP038",
|
||||
]
|
||||
lint.isort.force-single-line = true
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ class GitHubManager:
|
|||
# updated packages, or known releases that will happen but haven't yet
|
||||
if issue := self.existing_issues.get(needed_dj_version):
|
||||
if index := issue.body.find(package_name):
|
||||
name, _current, prev_compat, ok = (s.strip() for s in issue.body[index:].split("|", 4)[:4])
|
||||
_name, _current, prev_compat, ok = (s.strip() for s in issue.body[index:].split("|", 4)[:4])
|
||||
if ok in ("✅", "❓", "🕒"):
|
||||
return prev_compat, ok
|
||||
|
||||
|
|
10
uv.lock
10
uv.lock
|
@ -183,7 +183,7 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "cookiecutter-django"
|
||||
version = "2025.9.9"
|
||||
version = "2025.9.10"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "binaryornot" },
|
||||
|
@ -231,7 +231,7 @@ requires-dist = [
|
|||
{ name = "pyyaml", specifier = "==6.0.2" },
|
||||
{ name = "requests", specifier = "==2.32.5" },
|
||||
{ name = "ruff", specifier = "==0.13.0" },
|
||||
{ name = "sh", marker = "sys_platform != 'win23'", specifier = "==2.1" },
|
||||
{ name = "sh", marker = "sys_platform != 'win23'", specifier = "==2.2.2" },
|
||||
{ name = "tox", specifier = "==4.30.2" },
|
||||
{ name = "tox-uv", specifier = ">=1.17" },
|
||||
]
|
||||
|
@ -854,11 +854,11 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "sh"
|
||||
version = "2.1.0"
|
||||
version = "2.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/52/12/b7965006c5adc57ba5459385358bd27c4983cd490884a75be86eb1d3efeb/sh-2.1.0.tar.gz", hash = "sha256:7e27301c574bec8ca5bf6f211851357526455ee97cd27a7c4c6cc5e2375399cb", size = 345525, upload-time = "2024-10-09T07:16:26.683Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/59/52/f43920223c93e31874677c681b8603d36a40d3d8502d3a37f80d3995d43e/sh-2.2.2.tar.gz", hash = "sha256:653227a7c41a284ec5302173fbc044ee817c7bad5e6e4d8d55741b9aeb9eb65b", size = 345866, upload-time = "2025-02-24T07:16:25.363Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/00/59/f6551f49c123751e921038c24215157bd50aef375ced16cac57229678c43/sh-2.1.0-py3-none-any.whl", hash = "sha256:bf5e44178dd96a542126c2774e9b7ab1d89bfe0e2ef84d92e6d0ed7358d63d01", size = 38080, upload-time = "2024-10-09T07:16:23.84Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/98/d82f14ac7ffedbd38dfa2383f142b26d18d23ca6cf35a40f4af60df666bd/sh-2.2.2-py3-none-any.whl", hash = "sha256:e0b15b4ae8ffcd399bc8ffddcbd770a43c7a70a24b16773fbb34c001ad5d52af", size = 38295, upload-time = "2025-02-24T07:16:23.782Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/node:24.7-bookworm-slim
|
||||
FROM docker.io/node:24.8-bookworm-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% if cookiecutter.frontend_pipeline in ['Gulp', 'Webpack'] -%}
|
||||
FROM docker.io/node:24.7-bookworm-slim AS client-builder
|
||||
FROM docker.io/node:24.8-bookworm-slim AS client-builder
|
||||
|
||||
ARG APP_HOME=/app
|
||||
WORKDIR ${APP_HOME}
|
||||
|
|
|
@ -205,6 +205,7 @@ STATIC_URL = f"https://storage.googleapis.com/{GS_BUCKET_NAME}/static/"
|
|||
{%- elif cookiecutter.cloud_provider == 'Azure' %}
|
||||
MEDIA_URL = f"https://{AZURE_ACCOUNT_NAME}.blob.core.windows.net/media/"
|
||||
{%- if cookiecutter.use_whitenoise == 'n' %}
|
||||
COLLECTFASTA_STRATEGY = "collectfasta.strategies.azure.AzureBlobStrategy"
|
||||
STATIC_URL = f"https://{AZURE_ACCOUNT_NAME}.blob.core.windows.net/static/"
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
@ -324,7 +325,7 @@ COMPRESS_FILTERS = {
|
|||
"js": ["compressor.filters.jsmin.JSMinFilter"],
|
||||
}
|
||||
{% endif %}
|
||||
{%- if cookiecutter.use_whitenoise == 'n' and cookiecutter.cloud_provider in ('AWS', 'GCP') -%}
|
||||
{%- if cookiecutter.use_whitenoise == 'n' and cookiecutter.cloud_provider in ('AWS', 'GCP', 'Azure') -%}
|
||||
# Collectfasta
|
||||
# ------------------------------------------------------------------------------
|
||||
# https://github.com/jasongi/collectfasta#installation
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"webpack-merge": "^6.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "24.7"
|
||||
"node": "24.8"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 2 versions"
|
||||
|
|
|
@ -127,16 +127,10 @@ ignore = [
|
|||
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
|
||||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
||||
"SIM102", # sometimes it's better to nest
|
||||
"UP038", # Checks for uses of isinstance/issubclass that take a tuple
|
||||
# of types for comparison.
|
||||
# Deactivated because it can make the code slow:
|
||||
# https://github.com/astral-sh/ruff/issues/7871
|
||||
]
|
||||
# The fixes in extend-unsafe-fixes will require
|
||||
# provide the `--unsafe-fixes` flag when fixing.
|
||||
extend-unsafe-fixes = [
|
||||
"UP038",
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
force-single-line = true
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
gunicorn==23.0.0 # https://github.com/benoitc/gunicorn
|
||||
psycopg[c]==3.2.10 # https://github.com/psycopg/psycopg
|
||||
{%- if cookiecutter.use_whitenoise == 'n'and cookiecutter.cloud_provider in ('AWS', 'GCP') %}
|
||||
{%- if cookiecutter.use_whitenoise == 'n'and cookiecutter.cloud_provider in ('AWS', 'GCP', 'Azure') %}
|
||||
Collectfasta==3.3.1 # https://github.com/jasongi/collectfasta
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_sentry == "y" %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user