From 34ec7570a3c5620737306992e05135468efea9c4 Mon Sep 17 00:00:00 2001 From: Tom Ritchford Date: Wed, 14 Feb 2024 15:45:39 +0100 Subject: [PATCH] Modify multi/commands/poetry.py --- multi/commands/poetry.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/multi/commands/poetry.py b/multi/commands/poetry.py index e68b836..04fbcef 100644 --- a/multi/commands/poetry.py +++ b/multi/commands/poetry.py @@ -31,10 +31,9 @@ def update(project): assert project.name == 'multi' or not project.git.is_dirty() if (project.path / PYPROJECT).exists(): project.p() - if not False: - project.run.poetry('update') - if project.git.is_dirty(): - project.git.commit('Update dependencies', *PROJECT_FILES) + project.run.poetry('update') + if project.git.is_dirty(): + project.git.commit('Update dependencies', *PROJECT_FILES) def remove_cruft(project): @@ -53,6 +52,10 @@ def add_strict(project): project.git.commit('Run mypy in strict mode', PYPROJECT) +def run_tests(project): + project.run('/code/dotfiles/bin/run-tests') + + def _exists(url): try: value = requests.get(url)