Commit ebec57e9 authored by Vincent Michel's avatar Vincent Michel

Add pre-commit.sh to easily install the pre-commit hook

parent d8373655
#!/bin/bash
# This script installs a pre-commit hook on the local repository
# It allows black to run before any git commit.
# Install pre-commit, with a local install fallback
pip install --quiet --upgrade pre-commit 2>/dev/null \
|| pip install --quiet --user --upgrade pre-commit
# Install the pre-commit hook on the local repository
pre-commit install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment