From 49c3dedc1a05071444810f5e68052ec579d0e881 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Fri, 21 Aug 2026 10:50:19 +0100 Subject: [PATCH 1/2] Update pre-commit hook version Also add a couple of new hooks and update the autoupdate frequency. --- .pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 545b8f8..e6cdfeb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ # See https://pre-commit.com for more information repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 # Python 3.6 compatible + rev: v6.0.0 # Python 3.9 compatible hooks: # Python related checks - id: check-ast @@ -22,6 +22,7 @@ repos: - id: mixed-line-ending name: Force line endings to LF args: ['--fix=lf'] + - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/pre-commit/pygrep-hooks @@ -31,8 +32,9 @@ repos: - id: python-no-eval - id: python-no-log-warn - id: python-use-type-annotations + - id: text-unicode-replacement-char # Pre-commit CI config, see https://pre-commit.ci/ ci: autofix_prs: false - autoupdate_schedule: quarterly + autoupdate_schedule: monthly From 23debfcc9086c130ad5b8153a23e32c0dfd2c196 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Fri, 21 Aug 2026 10:54:32 +0100 Subject: [PATCH 2/2] Reorder requirements file to be alphabetical --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0b082d9..c9b591e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Pin packages to work with Python 3.9. Django==4.2.30 djangorestframework==3.16.1 -pytz==2026.3.post1 -PyMySQL==1.2.0 -pandas==2.3.3 numpy==2.0.2 # pandas dependency +pandas==2.3.3 +PyMySQL==1.2.0 +pytz==2026.3.post1