The contstants the syntax check rule suggests don't make sense in
python scripts.

Signed-off-by: Peter Krempa <pkre...@redhat.com>
---
 build-aux/syntax-check.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk
index eaeb6d4f23..bd9c21fc80 100644
--- a/build-aux/syntax-check.mk
+++ b/build-aux/syntax-check.mk
@@ -1516,6 +1516,9 @@ exclude_file_name_regexp--sc_black = \
 exclude_file_name_regexp--sc_spacing-check = \
   ^scripts/rpcgen/tests/test_demo\.[ch]$$

+exclude_file_name_regexp--sc_prohibit_magic_number_exit = \
+  ^scripts/.*\.py$$
+
 ## -------------- ##
 ## Implementation ##
 ## -------------- ##
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-le...@lists.libvirt.org

Reply via email to