You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.fail=lambdainfo : f"let op juiste indentatie"
52
+
returnFalse, p.stdout
53
+
if"E501"inp.stdoutor"W505"inp.stdout:
54
+
test.fail=lambdainfo : f"regel(s) te lang, code max {max_line_length} tekens, comments max {max_doc_length} tekens\n zie boek pagina 24 voor uitleg over splitsen van lange regels"
55
+
returnFalse, p.stdout
56
+
if"E502"inp.stdout:
57
+
test.fail=lambdainfo: f"gebruik tussen haakjes geen \\ om de regel af te breken"
58
+
returnFalse, p.stdout
59
+
if"W291"inp.stdout:
60
+
pattern=r'[^:\n]+:(\d+):\d+: W291'
61
+
matches=re.findall(pattern, p.stdout)
62
+
test.fail=lambdainfo: f"zorg dat er geen spaties aan het eind van een regel staan (regel {', '.join(matches)})"
0 commit comments