From 47c50d669c43314080dcccf9e1801b753814645c Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 17 Feb 2026 09:54:42 +0100 Subject: [PATCH 1/2] ENH: reactivate pre-commit.ci `autoupdate_schedule` --- src/compwa_policy/check_dev_files/upgrade_lock.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/compwa_policy/check_dev_files/upgrade_lock.py b/src/compwa_policy/check_dev_files/upgrade_lock.py index a717dc0b..2dde61e9 100644 --- a/src/compwa_policy/check_dev_files/upgrade_lock.py +++ b/src/compwa_policy/check_dev_files/upgrade_lock.py @@ -113,13 +113,14 @@ def _update_precommit_schedule( if ci_section is None: return key = "autoupdate_schedule" - if key not in ci_section: - return if get_dependabot_ecosystems() & __TRIGGER_ECOSYSTEMS: - del ci_section[key] + frequency = "quarterly" + if ci_section.get(key) == frequency: + return + ci_section[key] = "quarterly" precommit.changelog.append( - "Deactivated pre-commit autoupdate schedule, because it is already" - f" triggered by the {CONFIG_PATH.github_workflow_dir / 'lock.yml'}." + "Set pre-commit autoupdate schedule to quarterly (maximum), because the" + " schedule is now determined by Dependabot" ) else: if frequency == "semiannually": From b837d87f7b032a3c1e02251b517ca80155735be8 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:04:06 +0100 Subject: [PATCH 2/2] MAINT: address `ty` issues --- src/compwa_policy/utilities/vscode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compwa_policy/utilities/vscode.py b/src/compwa_policy/utilities/vscode.py index d828a819..34042cb9 100644 --- a/src/compwa_policy/utilities/vscode.py +++ b/src/compwa_policy/utilities/vscode.py @@ -127,7 +127,7 @@ def _determine_new_value(old: V, new: V, sort: bool = False) -> V: if isinstance(old, dict) and isinstance(new, dict): return _update_dict_recursively(old, new, sort) # ty:ignore[invalid-return-type] if isinstance(old, list) and isinstance(new, list): - return sorted({*old, *new}) # ty:ignore[invalid-argument-type] + return sorted({*old, *new}) # ty:ignore[invalid-return-type] return new