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 Oct 30, 2023
1 parent 0b9e687 commit caa59db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/proximity-and-light.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

import time

from ltr559 import LTR559

ltr559 = LTR559()
Expand Down
4 changes: 3 additions & 1 deletion examples/proximity-interrupt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env python
from ltr559 import LTR559
import signal

import RPi.GPIO as GPIO

from ltr559 import LTR559

print("""proximity-interrupt.py - Watch the LTR559 interrupt pin and trigger a function on change.
This script enables the LTR559's interrupt pin and sets up RPi.GPIO to watch it for changes.
Expand Down
3 changes: 2 additions & 1 deletion ltr559/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Library for the LITE-ON LTR559 digital light and proximity sensor."""
import time
from i2cdevice import Device, Register, BitField

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

__version__ = "0.1.1"
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

import mock
import pytest

from i2cdevice import MockSMBus


Expand Down

0 comments on commit caa59db

Please sign in to comment.