Skip to content

Commit 93abb53

Browse files
committed
tidy: Please editorconfig-checker after rebase
1 parent eddfa5c commit 93abb53

File tree

6 files changed

+43
-43
lines changed

6 files changed

+43
-43
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sensor drivers. For details, please read the package description in
77

88
## Attribution ** FORK **
99

10-
This library is a fork of the official python library from Sensirion, to
10+
This library is a fork of the official python library from Sensirion, to
1111
add support for CircuitPython on embedded devices and linux SBCs.
1212

1313
## Usage

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ The user manual is available at https://sensirion.github.io/python-i2c-driver/.
2424
Attribution
2525
-----------
2626

27-
This library is a fork of the official python library from Sensirion, to
28-
add support for CircuitPython on embedded devices and linux SBCs.
27+
This library is a fork of the official python library from Sensirion, to
28+
add support for CircuitPython on embedded devices and linux SBCs.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ with various I²C transceivers.
88
Attribution
99
-----------
1010

11-
This library is a fork of the official python library from Sensirion, to
11+
This library is a fork of the official python library from Sensirion, to
1212
add support for CircuitPython on embedded devices and linux SBCs.
1313

1414
Contents

pyproject.toml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
[tool.poetry]
2-
name = "circuitpython-sensirion-i2c-driver"
3-
version = "1.0.1"
4-
description = "A CircuitPython driver for Sensirion I2C devices. Fork of original python version by Sensirion."
5-
authors = ["Tyeth Gundry <[email protected]>", "Sensirion AG <[email protected]>"]
6-
license = "MIT"
7-
8-
# Include URLs relevant to your project
9-
repository = "https://github.com/good-enough-technology/CircuitPython_sensirion_i2c_driver"
10-
homepage = "https://github.com/good-enough-technology/CircuitPython_sensirion_i2c_driver"
11-
documentation = "https://good-enough-technology.github.io/CircuitPython_sensirion_i2c_driver"
12-
13-
#use docs/requirements.txt for documentation dependencies
14-
15-
[circup]
16-
circup_dependencies = [
17-
"adafruit_bus_device"
18-
]
1+
[tool.poetry]
2+
name = "circuitpython-sensirion-i2c-driver"
3+
version = "1.0.1"
4+
description = "A CircuitPython driver for Sensirion I2C devices. Fork of original python version by Sensirion."
5+
authors = ["Tyeth Gundry <[email protected]>", "Sensirion AG <[email protected]>"]
6+
license = "MIT"
7+
8+
# Include URLs relevant to your project
9+
repository = "https://github.com/good-enough-technology/CircuitPython_sensirion_i2c_driver"
10+
homepage = "https://github.com/good-enough-technology/CircuitPython_sensirion_i2c_driver"
11+
documentation = "https://good-enough-technology.github.io/CircuitPython_sensirion_i2c_driver"
12+
13+
#use docs/requirements.txt for documentation dependencies
14+
15+
[circup]
16+
circup_dependencies = [
17+
"adafruit_bus_device"
18+
]

sensirion_i2c_driver/__init__.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# -*- coding: utf-8 -*-
2-
# (c) Copyright 2019 Sensirion AG, Switzerland
3-
4-
# from __future__ import absolute_import, division, print_function
5-
from .version import version as __version__ # noqa: F401
6-
from .device import I2cDevice # noqa: F401
7-
from .connection import I2cConnection # noqa: F401
8-
9-
import sys
10-
if sys.implementation.name.lower() == "circuitpython":
11-
from .circuitpython_i2c_transceiver import CircuitPythonI2cTransceiver as I2cTransceiver
12-
else:
13-
from .linux_i2c_transceiver import LinuxI2cTransceiver as I2cTransceiver
14-
15-
from .command import I2cCommand # noqa: F401
16-
from .sensirion_command import SensirionI2cCommand # noqa: F401
17-
from .crc_calculator import CrcCalculator # noqa: F401
18-
19-
__copyright__ = '(c) Copyright 2019 Sensirion AG, Switzerland'
1+
# -*- coding: utf-8 -*-
2+
# (c) Copyright 2019 Sensirion AG, Switzerland
3+
4+
# from __future__ import absolute_import, division, print_function
5+
from .version import version as __version__ # noqa: F401
6+
from .device import I2cDevice # noqa: F401
7+
from .connection import I2cConnection # noqa: F401
8+
9+
import sys
10+
if sys.implementation.name.lower() == "circuitpython":
11+
from .circuitpython_i2c_transceiver import CircuitPythonI2cTransceiver as I2cTransceiver
12+
else:
13+
from .linux_i2c_transceiver import LinuxI2cTransceiver as I2cTransceiver
14+
15+
from .command import I2cCommand # noqa: F401
16+
from .sensirion_command import SensirionI2cCommand # noqa: F401
17+
from .crc_calculator import CrcCalculator # noqa: F401
18+
19+
__copyright__ = '(c) Copyright 2019 Sensirion AG, Switzerland'

sensirion_i2c_driver/circuitpython_i2c_transceiver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def transceive(self, slave_address, tx_data, rx_length, read_delay, timeout):
2020
except OSError as e:
2121
status = self.STATUS_UNSPECIFIED_ERROR
2222
error = e
23-
23+
2424
if read_delay > 0:
2525
time.sleep(read_delay)
2626
if(status == self.STATUS_OK):
@@ -30,7 +30,7 @@ def transceive(self, slave_address, tx_data, rx_length, read_delay, timeout):
3030
except OSError as e:
3131
status = self.STATUS_UNSPECIFIED_ERROR
3232
error = e
33-
33+
3434
return status, error, bytearray(b"")
3535

3636

0 commit comments

Comments
 (0)