Skip to content

Commit 6ee0179

Browse files
authored
Modernise project codebase and update dependencies (#158)
* Refresh project definition and dependencies * Bump project to Python 3.12 and remove unused dependencies * Update GitHub build dependencies * Migrate to `RegisterFormV2` from legacy registration form * Use `db.get_or_404()` instead of legacy query API * Update formatting of database migrations * Re-introduce `test_invalid_email` Re-implements test removed by 49b9cba
1 parent 5ca277e commit 6ee0179

19 files changed

+1390
-1452
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5
1414
with:
15-
python-version: 3.11
15+
python-version: 3.12
1616
- uses: pre-commit/[email protected]
1717

1818
test:
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-python@v5
2323
with:
24-
python-version: 3.11
24+
python-version: 3.12
2525
- uses: snok/install-poetry@v1
2626
with:
2727
virtualenvs-in-project: true

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-python@v5
1313
with:
14-
python-version: 3.11
14+
python-version: 3.12
1515
- uses: snok/install-poetry@v1
1616
with:
1717
virtualenvs-in-project: true

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
22
default_language_version:
3-
python: python3.11
3+
python: python3.12
44
repos:
5-
- repo: https://github.com/python-poetry/poetry
6-
rev: 1.4.2
5+
- repo: https://github.com/python-poetry/poetry-plugin-export
6+
rev: 1.9.0
77
hooks:
88
- id: poetry-export
99
- repo: https://github.com/psf/black
10-
rev: 23.3.0
10+
rev: 25.9.0
1111
hooks:
1212
- id: black
1313
- repo: https://github.com/PyCQA/flake8
14-
rev: 6.0.0
14+
rev: 7.3.0
1515
hooks:
1616
- id: flake8
1717
- repo: https://github.com/PyCQA/isort
18-
rev: 5.12.0
18+
rev: 7.0.0
1919
hooks:
2020
- id: isort
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.4.0
22+
rev: v6.0.0
2323
hooks:
2424
- id: trailing-whitespace
2525
- id: end-of-file-fixer

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11
1+
3.12

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11
1+
FROM python:3.12
22

33
WORKDIR /usr/src/app
44

migrations/versions/26b4c36c11e_create_database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2014-12-03 00:14:38.427893
66
77
"""
8+
89
revision = "26b4c36c11e"
910
down_revision = None
1011

migrations/versions/76d559b4e873_add_fs_uniquifier.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2022-10-24 09:31:01.814928
66
77
"""
8+
89
revision = "76d559b4e873"
910
down_revision = "d429595e8362"
1011

migrations/versions/d429595e8362_update_build_path_length.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2022-10-22 21:31:03.050850
66
77
"""
8+
89
revision = "d429595e8362"
910
down_revision = "dc7687894ba7"
1011

migrations/versions/d785f1fb2307_dsm6_fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2018-04-03 20:18:47.053636
66
77
"""
8+
89
revision = "d785f1fb2307"
910
down_revision = "26b4c36c11e"
1011

migrations/versions/dc7687894ba7_increase_field_sizes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2021-09-19 22:47:15.128884
66
77
"""
8+
89
revision = "dc7687894ba7"
910
down_revision = "d785f1fb2307"
1011

0 commit comments

Comments
 (0)