mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-18 17:52:21 -06:00
Remove obsolete pre-commit hook script
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CI / build (20.x, 3.14) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled
CI / build (20.x, 3.14) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
The legacy pre-commit hook script was scheduled for removal in NetBox v4.3, as noted in the TODO comment within the file. Users should now use the pre-commit tool instead.
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# TODO: Remove this file in NetBox v4.3
|
|
||||||
# This script has been maintained to ease transition to the pre-commit tool.
|
|
||||||
|
|
||||||
exec 1>&2
|
|
||||||
|
|
||||||
EXIT=0
|
|
||||||
RED='\033[0;31m'
|
|
||||||
YELLOW='\033[0;33m'
|
|
||||||
NOCOLOR='\033[0m'
|
|
||||||
|
|
||||||
printf "${YELLOW}The pre-commit hook script is obsolete. Please use pre-commit instead:${NOCOLOR}\n"
|
|
||||||
printf " pip install pre-commit\n"
|
|
||||||
printf " pre-commit install${NOCOLOR}\n"
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
Reference in New Issue
Block a user