From 3714c963d8ddacbb58a5a0d48a4ac2c1d6b7eaa4 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 21:52:29 -0500 Subject: [PATCH 01/10] chore: updates safe modules --- README.md | 1 + requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a2ad36..8d12297 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,4 @@ Please see [the setup documentation](SETUP.md) regarding this. * [requirements.txt](requirements.txt) - Pip package requirements for enabling developers to contribute. See [SETUP.md](SETUP.md) * [SETUP.md](SETUP.md) - Setup instructions for contributors +* [TESTING.md](TESTING.md) - Instructions for manually validating the website functionality works. diff --git a/requirements.txt b/requirements.txt index 767e71f..80703c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,8 @@ itsdangerous==2.1.2 Jinja2==3.1.3 MarkupSafe==2.1.3 mongoengine==0.27.0 -pre-commit==3.6.0 +pre-commit==4.5.0 pymongo>=3.12.0,<4.0 # mongoengine==0.27.0 requires a compatible version -python-dotenv==1.0.0 +python-dotenv==1.2.1 Werkzeug==3.0.1 WTForms==3.1.2 From 4c8c66789e7e336c963db4af507cac9962568b95 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 21:58:54 -0500 Subject: [PATCH 02/10] chore: updates pre-commit hook versions --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9f1650..89088bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: # general linting - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-yaml - id: fix-byte-order-marker @@ -21,13 +21,13 @@ repos: # python linting - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 25.12.0 hooks: - id: black # python linting - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: @@ -36,24 +36,24 @@ repos: # python linting - repo: https://github.com/asottile/reorder_python_imports - rev: v3.12.0 + rev: v3.16.0 hooks: - id: reorder-python-imports # python linting - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.21.2 hooks: - id: pyupgrade # markdown linting - repo: https://github.com/markdownlint/markdownlint - rev: v0.13.0 + rev: v0.13.0 # NOTE: v0.15.0 is giving a headache with pre-commit hooks: - id: markdownlint entry: mdl --style .markdownlint.rb - # css linting + # CSS linting - repo: https://github.com/pre-commit/mirrors-csslint rev: v1.0.5 hooks: @@ -61,7 +61,7 @@ repos: # YAML linting - repo: https://github.com/adrienverge/yamllint - rev: v1.33.0 + rev: v1.37.1 hooks: - id: yamllint entry: yamllint -c .yamllint.yaml . From 061d14f9181f6261507184dac18182685a0e0434 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:04:01 -0500 Subject: [PATCH 03/10] chore: updates simple core libraries --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 80703c5..3e76cc9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,12 +2,12 @@ Flask==2.2.5 flask-mongoengine==1.0.0 flask-restx==1.3.0 Flask-WTF==1.2.1 -itsdangerous==2.1.2 -Jinja2==3.1.3 +itsdangerous==2.2.0 +Jinja2==3.1.6 MarkupSafe==2.1.3 mongoengine==0.27.0 pre-commit==4.5.0 pymongo>=3.12.0,<4.0 # mongoengine==0.27.0 requires a compatible version python-dotenv==1.2.1 -Werkzeug==3.0.1 +Werkzeug==3.1.4 WTForms==3.1.2 From 5e2a40639fd7d7b4701023a3908863b040accdba Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:10:09 -0500 Subject: [PATCH 04/10] chore: updates form & api utilities --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3e76cc9..43629cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ Flask==2.2.5 flask-mongoengine==1.0.0 -flask-restx==1.3.0 -Flask-WTF==1.2.1 +flask-restx==1.3.2 +Flask-WTF==1.2.2 itsdangerous==2.2.0 Jinja2==3.1.6 MarkupSafe==2.1.3 @@ -10,4 +10,4 @@ pre-commit==4.5.0 pymongo>=3.12.0,<4.0 # mongoengine==0.27.0 requires a compatible version python-dotenv==1.2.1 Werkzeug==3.1.4 -WTForms==3.1.2 +WTForms==3.2.1 From 5708d4717c7de196bad443127874854781a82d8b Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:15:49 -0500 Subject: [PATCH 05/10] chore: updates mongoengine --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 43629cb..db9177e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ Flask-WTF==1.2.2 itsdangerous==2.2.0 Jinja2==3.1.6 MarkupSafe==2.1.3 -mongoengine==0.27.0 +mongoengine==0.29.1 pre-commit==4.5.0 pymongo>=3.12.0,<4.0 # mongoengine==0.27.0 requires a compatible version python-dotenv==1.2.1 From d44022cf4d1151cd8f3a4215258a27100b0ee62b Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:26:03 -0500 Subject: [PATCH 06/10] chore: updates to python 3.13 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1661963..8457b5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim +FROM python:3.13-slim WORKDIR /app From 57e52004f06de13ca017bdccc1b0a2ca43195d58 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:29:09 -0500 Subject: [PATCH 07/10] chore: updates pymongo --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index db9177e..91f6342 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ Jinja2==3.1.6 MarkupSafe==2.1.3 mongoengine==0.29.1 pre-commit==4.5.0 -pymongo>=3.12.0,<4.0 # mongoengine==0.27.0 requires a compatible version +pymongo==4.15.5 python-dotenv==1.2.1 Werkzeug==3.1.4 WTForms==3.2.1 From ae06b0b624e89c80ee5137daf24eb031b30cdb6d Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:31:30 -0500 Subject: [PATCH 08/10] chore: updates MarkupSafe --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 91f6342..cc03891 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ flask-restx==1.3.2 Flask-WTF==1.2.2 itsdangerous==2.2.0 Jinja2==3.1.6 -MarkupSafe==2.1.3 +MarkupSafe==3.0.3 mongoengine==0.29.1 pre-commit==4.5.0 pymongo==4.15.5 From f8ee9f5301ea93838ff875214819af793354de94 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:41:56 -0500 Subject: [PATCH 09/10] chore: leaves a comment for Flask version --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index cc03891..de5832d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,7 @@ +# NOTE: upgrading Flask past 2.2.5 causes issues with flask-mongoengine +# since Flask 3.0 completely removed the JSONEncoder class +# which flask-mongoengine (version 1.0.0) still relies on this removed class +# to handle JSON serialization for MongoDB objects. Flask==2.2.5 flask-mongoengine==1.0.0 flask-restx==1.3.2 From 9c4eec32a275708b827577fc3a535c7eb4f8ade6 Mon Sep 17 00:00:00 2001 From: Robert Lech Date: Tue, 9 Dec 2025 22:45:47 -0500 Subject: [PATCH 10/10] chore: updates mongo image versions --- docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 42cd335..1550253 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -14,7 +14,7 @@ services: - mongodb mongodb: - image: mongo:5.0.13-focal + image: mongo:8.2.2 container_name: mongodb environment: - PUID=1000 @@ -26,7 +26,7 @@ services: restart: unless-stopped mongo-seed: - image: mongo:5.0.13-focal + image: mongo:8.2.2 container_name: mongo-setup links: - mongodb