mirror of
https://opendev.org/openstack/networking-baremetal.git
synced 2026-01-11 20:07:23 +00:00
To enable networking-baremetal in devstack installation add the following to local.conf enable_plugin networking-baremetal git://git.openstack.org/openstack/networking-baremetal.git Change-Id: I605853a1decee6292ed9469be2f35b572049d919
20 lines
477 B
Bash
Executable file
20 lines
477 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# A simple wrapper around flake8 which makes it possible
|
|
# to ask it to only verify files changed in the current
|
|
# git HEAD patch.
|
|
#
|
|
# Intended to be invoked via tox:
|
|
#
|
|
# tox -epep8 -- -HEAD
|
|
#
|
|
|
|
if test "x$1" = "x-HEAD" ; then
|
|
shift
|
|
files=$(git diff --name-only HEAD~1 | tr '\n' ' ')
|
|
echo "Running flake8 on ${files}"
|
|
diff -u --from-file /dev/null ${files} | flake8 --diff "$@"
|
|
else
|
|
echo "Running flake8 on all files"
|
|
exec flake8 "$@"
|
|
fi
|