Skip to content

Commit 00fc3fd

Browse files
projectgusdpgeorge
authored andcommitted
all: Enable ruff E401 and E402 import lints.
Mostly small cleanups to put each top-level import on its own line. But explicitly disable the lint for examples/tests which insert the current directory into the path before importing. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 992eecf commit 00fc3fd

27 files changed

+58
-20
lines changed

micropython/bluetooth/aioble/examples/l2cap_file_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import sys
77

8+
# ruff: noqa: E402
89
sys.path.append("")
910

1011
from micropython import const

micropython/bluetooth/aioble/examples/l2cap_file_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import sys
1818

19+
# ruff: noqa: E402
1920
sys.path.append("")
2021

2122
from micropython import const

micropython/bluetooth/aioble/examples/temp_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22

3+
# ruff: noqa: E402
34
sys.path.append("")
45

56
from micropython import const

micropython/bluetooth/aioble/examples/temp_sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22

3+
# ruff: noqa: E402
34
sys.path.append("")
45

56
from micropython import const

micropython/bluetooth/aioble/multitests/ble_buffered_characteristic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

micropython/bluetooth/aioble/multitests/ble_characteristic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

micropython/bluetooth/aioble/multitests/ble_descriptor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

micropython/bluetooth/aioble/multitests/ble_notify.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

micropython/bluetooth/aioble/multitests/ble_shutdown.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

micropython/bluetooth/aioble/multitests/ble_write_capture.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import sys
44

5+
# ruff: noqa: E402
56
sys.path.append("")
67

78
from micropython import const
8-
import time, machine
9+
import machine
10+
import time
911

1012
import uasyncio as asyncio
1113
import aioble

0 commit comments

Comments
 (0)