Skip to content

Commit

Permalink
Fix pylint error
Browse files Browse the repository at this point in the history
Invisible due to syntax quirk in test script. When using the correct
syntax, the code fails. Microsoft and bad code are one word.
  • Loading branch information
SteffenKockel committed Sep 26, 2023
1 parent ab72d88 commit 5a4c15a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
pylint --rcfile tests/pylint.conf "$(git ls-files '*.py')"
pylint --rcfile tests/pylint.conf $(git ls-files '*.py')
pytest tests/test_boardfile.py
yamllint src/pyduin/data/boardfiles/ tests/data/boardfiles/ .github/workflows/

4 changes: 2 additions & 2 deletions tests/test_arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
CONFIG = {
'tty': '/dev/ttyUSB0',
'baudrate': '115200',
'pinfile': 'tests/data/boardfiles/nano.yml',
'boardfile': 'tests/data/boardfiles/nano.yml',
'board': 'nanoatmega328'
}

# pylint: disable=missing-docstring
class TestArduinoFirmwareMethods(unittest.TestCase):

def setUp(self):
CONFIG['pinfile'] = utils.board_pinfile(CONFIG['board'])
CONFIG['boardfile'] = utils.board_boardfile(CONFIG['board'])
self.arduino = arduino.Arduino(wait=True, **CONFIG)

# def tearDown(self):
Expand Down

0 comments on commit 5a4c15a

Please sign in to comment.