Skip to content

Commit 111b449

Browse files
authored
Version 1.5.0 release (#506)
1 parent f0523aa commit 111b449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+538
-1737
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,24 @@ jobs:
3030
python-version: ['3.10', '3.11', '3.12', '3.13']
3131
django-version:
3232
- 'Django~=4.2.0'
33-
- 'Django~=5.0.0'
34-
- 'Django==5.2b1'
33+
- 'Django~=5.1.0'
34+
- 'Django~=5.2.0'
3535
docker-compose-services: ['']
3636
additional-dependencies: ['']
3737
env: [{}]
3838
integration-test-setup-script: ['']
3939

4040
include:
41-
- python-version: '3.9'
42-
django-version: 'Django~=4.1.0'
43-
docker-compose-services: ''
44-
additional-dependencies: ''
45-
env: {}
46-
integration-test-setup-script: ''
4741
- python-version: '3.12'
48-
django-version: 'Django~=5.0.0'
42+
django-version: 'Django~=5.1.0'
4943
docker-compose-services: postgresql-db
5044
additional-dependencies: psycopg2
5145
env:
5246
DJANGO_DATABASE_ENGINE: 'django.db.backends.postgresql'
5347
DJANGO_DATABASE_PORT: 5432
54-
48+
5549
- python-version: '3.13'
56-
django-version: 'Django==5.2b1'
50+
django-version: 'Django~=5.2.0'
5751
docker-compose-services: postgresql-db-17
5852
additional-dependencies: psycopg
5953
env:
@@ -70,7 +64,7 @@ jobs:
7064
# integration-test-setup-script: >-
7165
# ./.dev/scripts/ci-mysql-setup-integration-tests.sh
7266
- python-version: '3.12'
73-
django-version: 'Django~=5.0.0'
67+
django-version: 'Django~=5.2.0'
7468
docker-compose-services: maria-db
7569
additional-dependencies: mysqlclient
7670
env:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
We follow Semantic Versions since the `0.1.0` release.
44

55

6+
## Version 1.5.0
7+
8+
### Features
9+
10+
- Adds Python 3.13 support
11+
- Drops Python 3.9 support
12+
- Adds Django 5.2 support
13+
14+
615
## Version 1.4.0
716

817
### Features

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
SHELL:=/usr/bin/env bash
22

3+
.PHONY: format
4+
format:
5+
poetry run ruff format
6+
poetry run ruff check
7+
38
.PHONY: lint
49
lint:
10+
poetry run ruff check --exit-non-zero-on-fix --diff
11+
poetry run ruff format --check --diff
512
poetry run mypy django_test_migrations
613
poetry run flake8 .
714

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

django_test_app/django_test_app/settings.py

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
1-
"""
2-
Django settings for django_test_app project.
3-
4-
Generated by 'django-admin startproject' using Django 2.2.7.
5-
6-
For more information on this file, see
7-
https://docs.djangoproject.com/en/2.2/topics/settings/
8-
9-
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/2.2/ref/settings/
11-
"""
1+
"""Django settings for django_test_app project."""
122

133
import os
4+
from pathlib import Path
145

156
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16-
BASE_DIR = os.path.dirname(
17-
os.path.dirname(os.path.abspath(__file__)),
18-
)
7+
BASE_DIR = Path(__file__).parent.parent
198

209

2110
# Quick-start development settings - unsuitable for production
2211
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
2312

2413
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = '_dpvr*#hjgv)6v=potf%*+$na7_ck(*+^g08lw0^44zoo88)wb'
14+
SECRET_KEY = '_dpvr*#hjgv)6v=potf%*+$na7_ck(*+^g08lw0^44zoo88)wb' # noqa: S105
2615

2716
# SECURITY WARNING: don't run with debug turned on in production!
2817
DEBUG = True
@@ -39,11 +28,9 @@
3928
'django.contrib.sessions',
4029
'django.contrib.messages',
4130
'django.contrib.staticfiles',
42-
4331
# Our custom checks:
4432
'django_test_migrations.contrib.django_checks.AutoNames',
4533
'django_test_migrations.contrib.django_checks.DatabaseConfiguration',
46-
4734
# Custom:
4835
'main_app',
4936
]
@@ -84,7 +71,7 @@
8471

8572
_DATABASE_NAME = os.environ.get(
8673
'DJANGO_DATABASE_NAME',
87-
default=os.path.join(BASE_DIR, 'db.sqlite3'),
74+
default=BASE_DIR.joinpath('db.sqlite3'),
8875
)
8976
DATABASES = {
9077
'default': {
@@ -101,7 +88,7 @@
10188
'NAME': (
10289
_DATABASE_NAME
10390
if _DATABASE_NAME.startswith('test_')
104-
else 'test_{0}'.format(_DATABASE_NAME)
91+
else f'test_{_DATABASE_NAME}'
10592
),
10693
},
10794
},
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

django_test_app/main_app/logic/pure/migrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing
22

33
if typing.TYPE_CHECKING:
4-
from main_app.models import SomeItem # noqa: WPS433
4+
from main_app.models import SomeItem
55

66

77
def is_clean_item(instance: 'SomeItem') -> bool:

django_test_app/main_app/migrations/0001_initial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Generated by Django 2.2.7 on 2019-11-19 20:00
32

43
from django.db import migrations, models
@@ -25,7 +24,7 @@ class Migration(migrations.Migration):
2524
),
2625
(
2726
'string_field',
28-
models.CharField(max_length=50), # noqa: WPS432
27+
models.CharField(max_length=50),
2928
),
3029
],
3130
),

0 commit comments

Comments
 (0)