Check for set_trace in scripts
This commit is contained in:
parent
a4c3ce6bdc
commit
70575d61f9
@ -190,6 +190,10 @@ def _check_file(fn):
|
|||||||
elif b' \t' in line or b'\t ' in line:
|
elif b' \t' in line or b'\t ' in line:
|
||||||
print("Found tab-space mix in {}".format(fn))
|
print("Found tab-space mix in {}".format(fn))
|
||||||
return False
|
return False
|
||||||
|
elif b'set_trace()' in line and not (
|
||||||
|
fn.endswith('debug.py') or fn.endswith('run_checks.py')):
|
||||||
|
print("Found set_trace in {}".format(fn))
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user