Skip to content

Commit

Permalink
fix: Onboarding with global pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Jul 29, 2023
1 parent d5901ff commit 146f1a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
set ignore-comments := true

# Runs onboarding steps, installing dependencies and setting up the environment.
onboard:
pip install pre-commit && pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg
onboard: install-pre-commit install-afl
pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg
cargo install cargo-tarpaulin

# Installs pre-commit, the program.
[unix]
install-pre-commit:
# From Debian 12, `pip install` globally is an error ("This environment is externally managed.")
command -v pre-commit > /dev/null || { pip install pre-commit || sudo apt-get update && sudo apt-get install --yes pre-commit; }

# Runs fuzz testing.
[unix]
fuzz: install-afl
Expand Down

0 comments on commit 146f1a2

Please sign in to comment.