Skip to content

Commit

Permalink
Modify multi/commands/poetry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rec committed Feb 14, 2024
1 parent 2819cd7 commit 34ec757
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions multi/commands/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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)
Expand Down

0 comments on commit 34ec757

Please sign in to comment.