Skip to content

Commit e4eb0df

Browse files
authored
Merge branch 'master' into lint-format-template-with-ruff
2 parents 2159cf7 + bf2a3c5 commit e4eb0df

File tree

15 files changed

+90
-47
lines changed

15 files changed

+90
-47
lines changed

.github/contributors.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,5 +1683,10 @@
16831683
"name": "Hana Belay",
16841684
"github_login": "earthcomfy",
16851685
"twitter_username": ""
1686+
},
1687+
{
1688+
"name": "Ed Morley",
1689+
"github_login": "edmorley",
1690+
"twitter_username": ""
16861691
}
16871692
]

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,44 @@ All enhancements and patches to Cookiecutter Django will be documented in this f
33

44
<!-- GENERATOR_PLACEHOLDER -->
55

6+
## 2025.01.26
7+
8+
9+
### Changed
10+
11+
- Migrate generated project from `runtime.txt` to `.python-version` ([#5652](https://github.com/cookiecutter/cookiecutter-django/pull/5652))
12+
13+
### Documentation
14+
15+
- Update Heroku deployment guide ([#5656](https://github.com/cookiecutter/cookiecutter-django/pull/5656))
16+
17+
## 2025.01.24
18+
19+
20+
### Updated
21+
22+
- Update ruff to 0.9.3 ([#5654](https://github.com/cookiecutter/cookiecutter-django/pull/5654))
23+
24+
## 2025.01.21
25+
26+
27+
### Changed
28+
29+
- Update linter error code from TCH to TC ([#5651](https://github.com/cookiecutter/cookiecutter-django/pull/5651))
30+
31+
### Updated
32+
33+
- Update pre-commit to 4.1.0 ([#5650](https://github.com/cookiecutter/cookiecutter-django/pull/5650))
34+
35+
## 2025.01.20
36+
37+
38+
### Changed
39+
40+
- Group all API tests under a `tests.api` namespace ([#5615](https://github.com/cookiecutter/cookiecutter-django/pull/5615))
41+
42+
- Migrate post-generation hook to pathlib ([#5648](https://github.com/cookiecutter/cookiecutter-django/pull/5648))
43+
644
## 2025.01.16
745

846

CONTRIBUTORS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,13 @@ Listed in alphabetical order.
803803
</td>
804804
<td></td>
805805
</tr>
806+
<tr>
807+
<td>Ed Morley</td>
808+
<td>
809+
<a href="https://github.com/edmorley">edmorley</a>
810+
</td>
811+
<td></td>
812+
</tr>
806813
<tr>
807814
<td>Emanuel Calso</td>
808815
<td>

docs/3-deployment/deployment-on-heroku.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ Run these commands to deploy the project to Heroku:
2525
# Assuming you chose Mailgun as mail service (see below for others)
2626
heroku addons:create mailgun:starter
2727
28-
heroku config:set PYTHONHASHSEED=random
29-
30-
heroku config:set WEB_CONCURRENCY=4
31-
3228
heroku config:set DJANGO_DEBUG=False
3329
heroku config:set DJANGO_SETTINGS_MODULE=config.settings.production
3430
heroku config:set DJANGO_SECRET_KEY="$(openssl rand -base64 64)"

hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def remove_utility_files():
7777

7878

7979
def remove_heroku_files():
80-
file_names = ["Procfile", "runtime.txt", "requirements.txt"]
80+
file_names = ["Procfile", "requirements.txt"]
8181
for file_name in file_names:
8282
if file_name == "requirements.txt" and "{{ cookiecutter.ci_tool }}".lower() == "travis":
8383
# Don't remove the file if we are using Travis CI but not using Heroku

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cookiecutter-django"
3-
version = "2025.01.16"
3+
version = "2025.01.26"
44
description = "A Cookiecutter template for creating production-ready Django projects quickly."
55
readme = "README.md"
66
keywords = [
@@ -35,15 +35,15 @@ dependencies = [
3535
"djlint==1.36.4",
3636
"gitpython==3.1.43",
3737
"jinja2==3.1.5",
38-
"pre-commit==3.8",
38+
"pre-commit==4.1.0",
3939
"pygithub==2.5",
4040
"pytest==8.3.4",
4141
"pytest-cookies==0.7",
4242
"pytest-instafail==0.5",
4343
"pytest-xdist==3.6.1",
4444
"pyyaml==6.0.2",
4545
"requests==2.32.3",
46-
"ruff==0.9.2",
46+
"ruff==0.9.3",
4747
"sh==2.1; sys_platform!='win23'",
4848
"tox==4.23.2",
4949
"tox-uv>=1.17",

uv.lock

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

{{cookiecutter.project_slug}}/.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ updates:
9898
# Enable version updates for Python/Pip - Production
9999
- package-ecosystem: 'pip'
100100
# Look for a `requirements.txt` in the `root` directory
101-
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
101+
# also 'setup.cfg', '.python-version' and 'requirements/*.txt'
102102
directory: '/'
103103
# Every weekday
104104
schedule:

{{cookiecutter.project_slug}}/.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Set up Python
2929
uses: actions/setup-python@v5
3030
with:
31-
python-version: '3.12'
31+
python-version-file: '.python-version'
3232

3333
{%- if cookiecutter.open_source_license != 'Not open source' %}
3434
# Consider using pre-commit.ci for open source project
@@ -88,9 +88,9 @@ jobs:
8888
{%- else %}
8989

9090
- name: Set up Python
91-
uses: actions/setup-python@v4
91+
uses: actions/setup-python@v5
9292
with:
93-
python-version: '3.12'
93+
python-version-file: '.python-version'
9494
cache: pip
9595
cache-dependency-path: |
9696
requirements/base.txt

{{cookiecutter.project_slug}}/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ docs/_build/
5959
# PyBuilder
6060
target/
6161

62-
# pyenv
63-
.python-version
64-
6562
{% if cookiecutter.use_celery == 'y' -%}
6663
# celery beat schedule file
6764
celerybeat-schedule

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636

3737
# Run the Ruff linter.
3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.9.2
39+
rev: v0.9.3
4040
hooks:
4141
# Linter
4242
- id: ruff
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ select = [
106106
"SLOT",
107107
"SIM",
108108
"TID",
109-
"TCH",
109+
"TC",
110110
"INT",
111111
# "ARG", # Unused function argument
112112
"PTH",

{{cookiecutter.project_slug}}/requirements/local.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ sphinx-autobuild==2024.10.3 # https://github.com/GaretJax/sphinx-autobuild
2828

2929
# Code quality
3030
# ------------------------------------------------------------------------------
31-
ruff==0.9.2 # https://github.com/astral-sh/ruff
31+
ruff==0.9.3 # https://github.com/astral-sh/ruff
3232
coverage==7.6.10 # https://github.com/nedbat/coveragepy
3333
djlint==1.36.4 # https://github.com/Riverside-Healthcare/djLint
34-
pre-commit==4.0.1 # https://github.com/pre-commit/pre-commit
34+
pre-commit==4.1.0 # https://github.com/pre-commit/pre-commit
3535

3636
# Django
3737
# ------------------------------------------------------------------------------

{{cookiecutter.project_slug}}/runtime.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)