Skip to content

Commit

Permalink
Fix recreate
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Sep 20, 2024
1 parent accf415 commit e834229
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ precommit:
# Run pre-commit to lint and reformat files
[positional-arguments]
lint hook="" *files="": precommit
python3 pre-commit.pyz run {{ hook }} {{ if files == "" { "--all-files" } else { "--files {{ files }}" } }}
#! /usr/bin/env bash
if [[ "$files" ]]; then
python3 pre-commit.pyz run {{ hook }} --files "${@:2}"
else
python3 pre-commit.pyz run {{ hook }} --all-files
fi

# Run codeowners validator locally. Only enable experimental hooks if there are no uncommitted changes.
lint-codeowners checks="stable":
Expand Down Expand Up @@ -254,7 +259,7 @@ dup app:
# Recreate all volumes and containers from scratch
recreate:
just down -v
just up "--force-recreate --build"
just up --force-recreate --build
just init
# Bust pnpm cache and reinstall Node.js dependencies
Expand Down

0 comments on commit e834229

Please sign in to comment.