Skip to content

Commit 743a3de

Browse files
committed
Update linter
1 parent 4d12d92 commit 743a3de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manager/manager/lint/linter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ class Lint:
77

88
def evaluate_code(self, code, exercise_id, warnings=False):
99
try:
10+
code = re.sub(r'from HAL import HAL', 'from hal import HAL', code)
11+
code = re.sub(r'from GUI import GUI', 'from gui import GUI', code)
12+
code = re.sub(r'from MAP import MAP', 'from map import MAP', code)
1013
code = re.sub(r'\nimport cv2\n', '\nfrom cv2 import cv2\n', code)
1114

1215
# Avoids EOF error when iterative code is empty (which prevents other errors from showing)

0 commit comments

Comments
 (0)