Skip to content

Commit

Permalink
Update and fix all remaining lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 20, 2023
1 parent 4b9cc6c commit 553c963
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions .codespell-whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ SOM
som
sinc
ser
hsi
6 changes: 3 additions & 3 deletions nebula/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def network_check(self):
self.monitor[0].stop_log()
raise ne.SSHNotFunctionalAfterBootFileUpdate

@_release_thread_lock
@_release_thread_lock # type: ignore
def recover_board(
self, system_top_bit_path, bootbinpath, uimagepath, devtreepath, sdcard=False
):
Expand Down Expand Up @@ -310,7 +310,7 @@ def recover_board(
bootbinpath, uimagepath, devtreepath, sdcard
)

@_release_thread_lock
@_release_thread_lock # type: ignore
def board_reboot_jtag_uart(
self, bootbinpath, uimagepath, devtreepath, sdcard=False
):
Expand Down Expand Up @@ -363,7 +363,7 @@ def board_reboot_jtag_uart(

self.monitor[0].stop_log()

@_release_thread_lock
@_release_thread_lock # type: ignore
def board_reboot_uart_net_pdu(
self, system_top_bit_path, bootbinpath, uimagepath, devtreepath
):
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ exclude = test/*,examples/*,doc/*,images/*

[mypy]
ignore_missing_imports=true
disable_error_code=import-untyped
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _get_version():
"pysnmp",
"invoke",
"xmodem",
"pytest",
"pytest>=7.0.0",
"pyvesync_v2",
"pyfiglet",
"usbsdmux",
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from nebula import pdu


Expand Down
1 change: 1 addition & 0 deletions tests/test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil

import pytest

from nebula import builder


Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import pytest
from fabric import Connection as con

from nebula import pdu, uart

# must include -s
Expand Down
1 change: 1 addition & 0 deletions tests/test_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil

import pytest

from nebula import downloader

# Must be connected to analog VPN
Expand Down
1 change: 1 addition & 0 deletions tests/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil

import pytest

from nebula import driver

# def remove_file(files):
Expand Down
1 change: 1 addition & 0 deletions tests/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time

import pytest

from nebula import manager


Expand Down
1 change: 1 addition & 0 deletions tests/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time

import pytest

from nebula import network, pdu, uart


Expand Down
1 change: 1 addition & 0 deletions tests/test_uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time

import pytest

from nebula import pdu, uart


Expand Down
1 change: 1 addition & 0 deletions tests/test_usbsdmux.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil

import pytest

from nebula import pdu, usbmux


Expand Down

0 comments on commit 553c963

Please sign in to comment.