Skip to content

Commit

Permalink
build: Better justfile with windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed Aug 11, 2023
1 parent ed8957c commit 2c9424b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
install-pre-commit:
default:
just --list

[unix]
_install-pre-commit:
#!/usr/bin/env bash
if ( which pre-commit > /dev/null 2>&1 )
then
Expand All @@ -10,7 +14,12 @@ install-pre-commit:
echo "-----------------------------------------------------------------"
fi
install: install-pre-commit (poetry "install")
[windows]
_install-pre-commit:
#!powershell.exe
Write-Host "Please ensure pre-commit hooks are installed using 'pre-commit install --install-hooks'"

install: (poetry "install") && _install-pre-commit

update: (poetry "install")

Expand Down

0 comments on commit 2c9424b

Please sign in to comment.