Skip to content

Commit 61f26bc

Browse files
authored
Merge pull request #238 from City-of-Helsinki/KK-802-upgrade-all-dependencies
KK-802 | Upgrade all dependencies
2 parents 02477be + 287202d commit 61f26bc

96 files changed

Lines changed: 894 additions & 758 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
services:
2020
postgres:
21-
image: postgres:10
21+
image: postgres:11
2222
ports:
2323
- 5432:5432
2424
options: >-
@@ -35,10 +35,10 @@ jobs:
3535
- name: Check out repository
3636
uses: actions/checkout@v2
3737

38-
- name: Set up Python 3.7
38+
- name: Set up Python 3.9
3939
uses: actions/setup-python@v2
4040
with:
41-
python-version: '3.7'
41+
python-version: '3.9'
4242

4343
- name: Cache pip packages
4444
uses: actions/cache@v2
@@ -70,10 +70,10 @@ jobs:
7070
- name: Check out repository
7171
uses: actions/checkout@v2
7272

73-
- name: Set up Python 3.7
73+
- name: Set up Python 3.9
7474
uses: actions/setup-python@v2
7575
with:
76-
python-version: '3.7'
76+
python-version: '3.9'
7777

7878
- name: Cache pip packages
7979
uses: actions/cache@v2

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/mirrors-isort
5-
rev: v4.3.21
5+
rev: v5.9.3
66
hooks:
77
- id: isort
88
- repo: https://github.com/psf/black
9-
rev: stable
9+
rev: 21.9b0
1010
hooks:
1111
- id: black
1212
- repo: https://gitlab.com/pycqa/flake8
13-
rev: 3.7.9
13+
rev: 4.0.1
1414
hooks:
1515
- id: flake8
16-
exclude: migrations|snapshots
16+
exclude: migrations|snapshots

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ==============================
2-
FROM helsinkitest/python:3.7-slim as appbase
2+
FROM helsinkitest/python:3.9-slim as appbase
33
# ==============================
44
RUN mkdir /entrypoint
55

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The project is now running at [localhost:8081](http://localhost:8081)
2424

2525
Prerequisites:
2626

27-
* PostgreSQL 10
28-
* Python 3.7
27+
* PostgreSQL 11
28+
* Python 3.9
2929

3030
### Installing Python requirements
3131

children/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
default_app_config = "children.apps.ChildrenConfig"

children/admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from django.contrib import admin
2-
from django.utils.translation import ugettext_lazy as _
3-
from languages.models import Language
4-
from subscriptions.models import FreeSpotNotificationSubscription
2+
from django.utils.translation import gettext_lazy as _
53

64
from events.models import Enrolment, TicketSystemPassword
5+
from languages.models import Language
6+
from subscriptions.models import FreeSpotNotificationSubscription
77

88
from .models import Child, Relationship
99

children/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.apps import AppConfig
2-
from django.utils.translation import ugettext_lazy as _
2+
from django.utils.translation import gettext_lazy as _
33

44

55
class ChildrenConfig(AppConfig):

children/factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import factory
2-
from projects.models import Project
32

43
from children.models import Child, Relationship
4+
from projects.models import Project
55
from users.factories import GuardianFactory
66

77

children/models.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from django.core.validators import RegexValidator
22
from django.db import models, transaction
33
from django.db.models import Q
4-
from django.utils.translation import ugettext_lazy as _
5-
from languages.models import Language
4+
from django.utils.translation import gettext_lazy as _
65

76
from common.models import TimestampedModel, UUIDPrimaryKeyModel
7+
from languages.models import Language
88
from users.models import Guardian
99

1010

@@ -38,7 +38,9 @@ class Child(UUIDPrimaryKeyModel, TimestampedModel):
3838
last_name = models.CharField(verbose_name=_("last name"), max_length=64, blank=True)
3939
birthdate = models.DateField(verbose_name=_("birthdate"))
4040
postal_code = models.CharField(
41-
verbose_name=_("postal code"), max_length=5, validators=[postal_code_validator],
41+
verbose_name=_("postal code"),
42+
max_length=5,
43+
validators=[postal_code_validator],
4244
)
4345
guardians = models.ManyToManyField(
4446
Guardian,

children/notifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from django.utils.translation import ugettext_lazy as _
1+
from django.utils.translation import gettext_lazy as _
22
from django_ilmoitin.dummy_context import dummy_context
33
from django_ilmoitin.registry import notifications
4-
from projects.factories import ProjectFactory
54

5+
from projects.factories import ProjectFactory
66
from users.factories import GuardianFactory
77

88
from .factories import ChildWithGuardianFactory

0 commit comments

Comments
 (0)