Drop unnecessary executable flags
This patch also adds checks for executable files in pep8 job. Change-Id: I862ee6c891af05c58ab2aca1178cfd984efb2d3c
This commit is contained in:
parent
153676fb43
commit
2ac455370d
0
doc/source/conf.py
Executable file → Normal file
0
doc/source/conf.py
Executable file → Normal file
11
tools/find_executables.sh
Normal file
11
tools/find_executables.sh
Normal file
@ -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
|
||||
|
7
tox.ini
7
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
|
||||
|
0
vitrage_dashboard/alarms/templates/alarms/banner.html
Executable file → Normal file
0
vitrage_dashboard/alarms/templates/alarms/banner.html
Executable file → Normal file
0
vitrage_dashboard/alarms/views.py
Executable file → Normal file
0
vitrage_dashboard/alarms/views.py
Executable file → Normal file
0
vitrage_dashboard/dashboard/static/dashboard/project/components/alarms/alarms.scss
Executable file → Normal file
0
vitrage_dashboard/dashboard/static/dashboard/project/components/alarms/alarms.scss
Executable file → Normal file
0
vitrage_dashboard/dashboard/static/dashboard/project/vitrage.scss
Executable file → Normal file
0
vitrage_dashboard/dashboard/static/dashboard/project/vitrage.scss
Executable file → Normal file
0
vitrage_dashboard/enabled/_4020_project_alarms_vitrage_panel.py
Executable file → Normal file
0
vitrage_dashboard/enabled/_4020_project_alarms_vitrage_panel.py
Executable file → Normal file
Loading…
Reference in New Issue
Block a user