Skip to content

Commit 0bf7070

Browse files
committed
pre-commit and sphinx
1 parent 2f0477a commit 0bf7070

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

README.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ Adafruit 24LC32 I2C EEPROM Breakout
4545

4646
Installing from PyPI
4747
=====================
48-
.. note:: This library is not available on PyPI yet. Install documentation is included
49-
as a standard element. Stay tuned for PyPI availability!
50-
51-
.. todo:: Remove the above note if PyPI version is/will be available at time of release.
5248

5349
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
5450
PyPI <https://pypi.org/project/adafruit-circuitpython-24lc32/>`_.

adafruit_24lc32.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ class EEPROM_I2C(EEPROM):
190190
:param: ~busio.I2C i2c_bus: The I2C bus the EEPROM is connected to.
191191
:param: int address: I2C address of EEPROM. Default address is ``0x50``.
192192
:param: bool write_protect: Turns on/off initial write protection.
193-
Default is ``False``.
193+
Default is ``False``.
194194
:param: wp_pin: (Optional) Physical pin connected to the ``WP`` breakout pin.
195-
Must be a ``digitalio.DigitalInOut`` object.
195+
Must be a ``digitalio.DigitalInOut`` object.
196196
"""
197197

198198
# pylint: disable=too-many-arguments
@@ -245,6 +245,7 @@ def _write(self, start_address, data, wraparound=False):
245245
i2c.write(buffer)
246246

247247
time.sleep(0.005)
248+
248249
# pylint: disable=no-member
249250
@EEPROM.write_protected.setter
250251
def write_protected(self, value):

docs/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,15 @@
2929

3030

3131
intersphinx_mapping = {
32-
"python": ("https://docs.python.org/3.4", None),"BusDevice": ("https://circuitpython.readthedocs.io/projects/busdevice/en/latest/", None),
33-
"Register": ("https://circuitpython.readthedocs.io/projects/register/en/latest/", None),
32+
"python": ("https://docs.python.org/3.4", None),
33+
"BusDevice": (
34+
"https://circuitpython.readthedocs.io/projects/busdevice/en/latest/",
35+
None,
36+
),
37+
"Register": (
38+
"https://circuitpython.readthedocs.io/projects/register/en/latest/",
39+
None,
40+
),
3441
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
3542
}
3643

docs/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Table of Contents
2424
.. toctree::
2525
:caption: Tutorials
2626

27-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
28-
the toctree above for use later.
2927

3028
.. toctree::
3129
:caption: Related Products

examples/24lc32_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
eeprom[0] = 4
1313
print(eeprom[0])
1414

15-
#eeprom[0:3] = [9, 3, 8, 1]
16-
#print(eeprom[0:3])
15+
# eeprom[0:3] = [9, 3, 8, 1]
16+
# print(eeprom[0:3])
1717

1818
while True:
1919
pass

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
],
6060
# What does your project relate to?
6161
keywords="adafruit blinka circuitpython micropython 24lc32 EEPROM memory nvm",
62-
6362
# You can just specify the packages manually here if your project is
6463
# simple. Or you can use find_packages().
6564
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,

0 commit comments

Comments
 (0)