From 2ac455370d18b058c1a8f9d5a2c99097ebfb8c49 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Wed, 5 Dec 2018 14:10:27 +0200 Subject: [PATCH] Drop unnecessary executable flags This patch also adds checks for executable files in pep8 job. Change-Id: I862ee6c891af05c58ab2aca1178cfd984efb2d3c --- doc/source/conf.py | 0 tools/find_executables.sh | 11 +++++++++++ tox.ini | 7 ++++++- vitrage_dashboard/alarms/templates/alarms/banner.html | 0 vitrage_dashboard/alarms/views.py | 0 .../dashboard/project/components/alarms/alarms.scss | 0 .../dashboard/static/dashboard/project/vitrage.scss | 0 .../enabled/_4020_project_alarms_vitrage_panel.py | 0 8 files changed, 17 insertions(+), 1 deletion(-) mode change 100755 => 100644 doc/source/conf.py create mode 100644 tools/find_executables.sh mode change 100755 => 100644 vitrage_dashboard/alarms/templates/alarms/banner.html mode change 100755 => 100644 vitrage_dashboard/alarms/views.py mode change 100755 => 100644 vitrage_dashboard/dashboard/static/dashboard/project/components/alarms/alarms.scss mode change 100755 => 100644 vitrage_dashboard/dashboard/static/dashboard/project/vitrage.scss mode change 100755 => 100644 vitrage_dashboard/enabled/_4020_project_alarms_vitrage_panel.py diff --git a/doc/source/conf.py b/doc/source/conf.py old mode 100755 new mode 100644 diff --git a/tools/find_executables.sh b/tools/find_executables.sh new file mode 100644 index 0000000..a0700cd --- /dev/null +++ b/tools/find_executables.sh @@ -0,0 +1,11 @@ +OUTPUT=`find . \( -name .tox -o -name .git \) -prune -o -type f -perm /a=x -print` +if [ -n "$OUTPUT" ]; then + echo "Unexpected executable files are found:" + for f in $OUTPUT; do + echo $f + done + echo + echo "If you really need to add an executable file, add it to tools/executable_files.txt" + exit 1 +fi + diff --git a/tox.ini b/tox.ini index 276d13e..f26af55 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,12 @@ commands = /bin/rm -f .testrepository/times.dbm [testenv:pep8] basepython = python3 -commands = flake8 +whitelist_externals = + bash + find +commands = + flake8 + bash {toxinidir}/tools/find_executables.sh [testenv:npm] basepython = python3 diff --git a/vitrage_dashboard/alarms/templates/alarms/banner.html b/vitrage_dashboard/alarms/templates/alarms/banner.html old mode 100755 new mode 100644 diff --git a/vitrage_dashboard/alarms/views.py b/vitrage_dashboard/alarms/views.py old mode 100755 new mode 100644 diff --git a/vitrage_dashboard/dashboard/static/dashboard/project/components/alarms/alarms.scss b/vitrage_dashboard/dashboard/static/dashboard/project/components/alarms/alarms.scss old mode 100755 new mode 100644 diff --git a/vitrage_dashboard/dashboard/static/dashboard/project/vitrage.scss b/vitrage_dashboard/dashboard/static/dashboard/project/vitrage.scss old mode 100755 new mode 100644 diff --git a/vitrage_dashboard/enabled/_4020_project_alarms_vitrage_panel.py b/vitrage_dashboard/enabled/_4020_project_alarms_vitrage_panel.py old mode 100755 new mode 100644