Skip to content
Snippets Groups Projects
install_githooks.bat 425 B
Newer Older
Mikkel Friis-Møller's avatar
Mikkel Friis-Møller committed
echo off
echo Create .githooks folder if not exists"
if not exist ".githooks" mkdir .githooks

echo write 'exec c:/anaconda3/Scripts/pycodestyle.exe --ignore=E501,W504  ./topfarm/' to pre-commit
echo Please modify path to pycodestyle
echo #!/bin/sh > .githooks/pre-commit
echo exec c:/anaconda3/Scripts/pycodestyle.exe --ignore=E501,W504  ./topfarm/ >> .githooks/pre-commit
git config core.hooksPath .githooks
echo Done
pause