In the past there have been quite a few tickets regarding python syntax errors on scripts rewritten to python.
To make a quickfix on some of these faults we could make a Jenkins step that executes: python3 -m compileall -q . to do a offline compile of the python files.
as for writing this tasks we have these faults in the repository:
*** Error compiling './src/conf_mode/interfaces-openvpn.py'...
Sorry: IndentationError: unindent does not match any outer indentation level (interfaces-openvpn.py, line 635)
*** Error compiling './src/conf_mode/interfaces-pseudo-ethernet.py'...
File "./src/conf_mode/interfaces-pseudo-ethernet.py", line 130
or peth['ipv6_autoconf'] ) ):
^
SyntaxError: invalid syntax
*** Error compiling './src/conf_mode/interfaces-vxlan.py'...
File "./src/conf_mode/interfaces-vxlan.py", line 172
return None
^
SyntaxError: invalid syntax