mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
syntax-check: Ensure Python is called via env(1)
The syntax-check rule that calls flake8 on Python scripts expects this to be the case, and it's the best practice anyway. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
5af19e530e
commit
f0c1ce4382
@ -561,6 +561,11 @@ sc_require_enum_last_marker:
|
||||
{ echo 'enum impl needs _LAST marker on second line' 1>&2; \
|
||||
exit 1; } || :
|
||||
|
||||
sc_prohibit_python_without_env:
|
||||
@prohibit='#!/usr/.*/py''thon' \
|
||||
halt='always call python via /usr/bin/env' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
# We're intentionally ignoring a few warnings
|
||||
#
|
||||
# E501: Force breaking lines at < 80 characters results in
|
||||
|
Loading…
Reference in New Issue
Block a user