Add a multi-language duplicate finder that writes .metrics/dry.edn.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Run the duplication finder, creating a local virtualenv on first use.
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
||||
PY="$ROOT/.venv/bin/python"
|
||||
if [ ! -x "$PY" ]; then
|
||||
python3 -m venv "$ROOT/.venv"
|
||||
"$ROOT/.venv/bin/pip" install -e "$ROOT"
|
||||
fi
|
||||
exec "$PY" -m dryer "$@"
|
||||
Reference in New Issue
Block a user