Skip to content

Commit b02520e

Browse files
committed
QA: Apply isort suggestions.
1 parent e35261a commit b02520e

8 files changed

+19
-11
lines changed

examples/get-time.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
import rv3028
43
import time
54

5+
import rv3028
6+
67
print("""get-time.py - Gets time and date from the RTC.
78
89
Press Ctrl+C to exit.

examples/set-alarm.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
import rv3028
4-
import time
53
import datetime
4+
import time
5+
6+
import rv3028
67

78
print("""set-time.py - Sets alarm for 5 minutes time, recurring hourly,
89
and waits for alarm to be triggered.

examples/set-countdown-timer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
import rv3028
43
import time
54

5+
import rv3028
6+
67
print("""set-countdown-timer.py - Set the periodic countdown timer to 5 x 1 second ticks and waits for alarm to be triggered.
78
89
Press Ctrl+C to exit.

examples/set-time.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
import rv3028
4-
import time
53
import datetime
4+
import time
5+
6+
import rv3028
67

78
print("""set-time.py - Sets RTC with current time for your system and
89
enables battery backup to preserve the time when power is off.

rv3028/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import datetime
12
import time
2-
from i2cdevice import Device, Register, BitField
3+
4+
from i2cdevice import BitField, Device, Register
35
from i2cdevice.adapter import Adapter, LookupAdapter, U16ByteSwapAdapter
4-
import datetime
56

67
__version__ = '0.0.5'
78

tests/test_alarm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from i2cdevice import MockSMBus
21
import datetime
2+
33
import pytest
4+
from i2cdevice import MockSMBus
45

56

67
def test_alarm_hours_24():

tests/test_setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
2-
from i2cdevice import MockSMBus
2+
33
import mock
4+
from i2cdevice import MockSMBus
45

56

67
def test_setup():

tests/test_time.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from i2cdevice import MockSMBus
21
import datetime
2+
33
import pytest
4+
from i2cdevice import MockSMBus
45

56

67
def test_time_and_date():

0 commit comments

Comments
 (0)