Skip to content

Commit 715b292

Browse files
committed
fix: Disabled E213 for CRC and fixed import for E702
1 parent d1fd59a commit 715b292

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ flake8:
2929
# F403 'from module import *' used; unable to detect undefined names https://www.flake8rules.com/rules/F403.html
3030
# W503 Line break occurred before a binary operator https://www.flake8rules.com/rules/W503.html
3131
# E501 Line too long (>79 characters) https://www.flake8rules.com/rules/E501.html
32-
${PYTHON} -m flake8 --exclude=notecard/md5.py test/ notecard/ examples/ mpy_board/ --count --ignore=E722,F401,F403,W503,E501,E502 --show-source --statistics
32+
${PYTHON} -m flake8 --exclude=notecard/md5.py test/ notecard/ examples/ mpy_board/ --count --ignore=E722,F401,F403,W503,E501,E502,E231 --show-source --statistics
3333

3434
coverage:
3535
${RUN_VENV_ACTIVATE}

test/hitl/example_runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ def run(self, use_uart, assert_success=True):
1111
pyb = pyboard.Pyboard(self.pyboard_port, 115200)
1212
pyb.enter_raw_repl()
1313
try:
14-
cmd = f'from {self.example_module} import run_example; run_example("{self.product_uid}", {use_uart})'
14+
cmd = (
15+
f'from {self.example_module} import run_example\n'
16+
f'run_example("{self.product_uid}", {use_uart})'
17+
)
1518
output = pyb.exec(cmd)
1619
output = output.decode()
1720
finally:

0 commit comments

Comments
 (0)