Skip to content

Commit

Permalink
QA: Apply isort suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Feb 22, 2024
1 parent e35261a commit b02520e
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion examples/get-time.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python

import rv3028
import time

import rv3028

print("""get-time.py - Gets time and date from the RTC.
Press Ctrl+C to exit.
Expand Down
5 changes: 3 additions & 2 deletions examples/set-alarm.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python

import rv3028
import time
import datetime
import time

import rv3028

print("""set-time.py - Sets alarm for 5 minutes time, recurring hourly,
and waits for alarm to be triggered.
Expand Down
3 changes: 2 additions & 1 deletion examples/set-countdown-timer.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python

import rv3028
import time

import rv3028

print("""set-countdown-timer.py - Set the periodic countdown timer to 5 x 1 second ticks and waits for alarm to be triggered.
Press Ctrl+C to exit.
Expand Down
5 changes: 3 additions & 2 deletions examples/set-time.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python

import rv3028
import time
import datetime
import time

import rv3028

print("""set-time.py - Sets RTC with current time for your system and
enables battery backup to preserve the time when power is off.
Expand Down
5 changes: 3 additions & 2 deletions rv3028/__init__.py
@@ -1,7 +1,8 @@
import datetime
import time
from i2cdevice import Device, Register, BitField

from i2cdevice import BitField, Device, Register
from i2cdevice.adapter import Adapter, LookupAdapter, U16ByteSwapAdapter
import datetime

__version__ = '0.0.5'

Expand Down
3 changes: 2 additions & 1 deletion tests/test_alarm.py
@@ -1,6 +1,7 @@
from i2cdevice import MockSMBus
import datetime

import pytest
from i2cdevice import MockSMBus


def test_alarm_hours_24():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_setup.py
@@ -1,6 +1,7 @@
import sys
from i2cdevice import MockSMBus

import mock
from i2cdevice import MockSMBus


def test_setup():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_time.py
@@ -1,6 +1,7 @@
from i2cdevice import MockSMBus
import datetime

import pytest
from i2cdevice import MockSMBus


def test_time_and_date():
Expand Down

0 comments on commit b02520e

Please sign in to comment.