On Tue, Jan 16, 2024 at 05:12:36PM +0100, Peter Krempa wrote:
+++ 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$$
If you use sys.exit() instead of exit(), like the other Python
scripts are doing, you don't need this anymore.
--
Andrea Bolognani / Red Hat / Virtualization