From 5d574308ba06352c5d9452a577bc7edf6dcf5ae8 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:21:57 +0100 Subject: [PATCH] FEAT: add `quarterly` and `biannually` to cron jobs --- src/repoma/check_dev_files/__init__.py | 2 +- src/repoma/check_dev_files/update_pip_constraints.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/repoma/check_dev_files/__init__.py b/src/repoma/check_dev_files/__init__.py index eb14aea2..94cb7033 100644 --- a/src/repoma/check_dev_files/__init__.py +++ b/src/repoma/check_dev_files/__init__.py @@ -205,7 +205,7 @@ def _create_argparse() -> ArgumentParser: ) parser.add_argument( "--pin-requirements", - choices=["no", "biweekly", "monthly", "bimonthly"], + choices=["no", "biweekly", "monthly", "bimonthly", "quarterly", "biannually"], default="no", help=( "Add a script to pin developer requirements to a constraint file." diff --git a/src/repoma/check_dev_files/update_pip_constraints.py b/src/repoma/check_dev_files/update_pip_constraints.py index 3678c27f..64c43d60 100644 --- a/src/repoma/check_dev_files/update_pip_constraints.py +++ b/src/repoma/check_dev_files/update_pip_constraints.py @@ -15,6 +15,8 @@ "biweekly": "0 2 * * 1", "monthly": "0 3 7 */1 *", "bimonthly": "0 3 7 */2 *", + "quarterly": "0 3 7 */3 *", + "biannually": "0 3 7 */6 *", }