Skip to content

Commit fb8ffdc

Browse files
authored
Merge pull request #3 from adafruit/black-update
Black reformatting with Python 3 target.
2 parents 1dc6477 + 82aae01 commit fb8ffdc

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

adafruit_ble_cycling_speed_and_cadence.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,20 @@
6363
)
6464
"""Namedtuple for measurement values.
6565
66-
.. py:attribute:: CSCMeasurementValues.cumulative_wheel_revolutions
66+
.. :attribute:: cumulative_wheel_revolutions:
6767
6868
Cumulative wheel revolutions (int).
6969
70-
.. py:attribute:: CSCMeasurementValues.last_wheel_event_time
70+
.. :attribute:: last_wheel_event_time:
7171
7272
Time (int), units in 1024ths of a second, when last wheel event was measured.
7373
This is a monotonically increasing clock value, not an interval.
7474
75-
.. py:attribute:: CSCMeasurementValues.cumulative_wheel_revolutions
75+
.. :attribute:: cumulative_crank_revolutions:
7676
7777
Cumulative crank revolutions (int).
7878
79-
.. py:attribute:: CSCMeasurementValues.last_wheel_event_time
79+
.. :attribute:: last_crank_event_time:
8080
8181
Time (int), units in 1024ths of a second, when last crank event was measured.
8282
This is a monotonically increasing clock value, not an interval.
@@ -145,7 +145,9 @@ class CyclingSpeedAndCadenceService(Service):
145145

146146
def __init__(self, service=None):
147147
super().__init__(service=service)
148-
self._measurement_buf = bytearray(self.csc_measurement.packet_size) #pylint: disable=no-member
148+
self._measurement_buf = bytearray(
149+
self.csc_measurement.packet_size # pylint: disable=no-member
150+
)
149151

150152
@property
151153
def measurement_values(self):
@@ -168,7 +170,7 @@ def measurement_values(self):
168170
#
169171

170172
buf = self._measurement_buf
171-
packet_length = self.csc_measurement.readinto(buf) #pylint: disable=no-member
173+
packet_length = self.csc_measurement.readinto(buf) # pylint: disable=no-member
172174
if packet_length == 0:
173175
return None
174176
flags = buf[0]

docs/conf.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@
3838
master_doc = "index"
3939

4040
# General information about the project.
41-
project = u"Adafruit BLE_Cycling_Speed_and_Cadence Library"
42-
copyright = u"2020 Adafruit Industries"
43-
author = u"Adafruit Industries"
41+
project = "Adafruit BLE_Cycling_Speed_and_Cadence Library"
42+
copyright = "2020 Adafruit Industries"
43+
author = "Adafruit Industries"
4444

4545
# The version info for the project you're documenting, acts as replacement for
4646
# |version| and |release|, also used in various other places throughout the
4747
# built documents.
4848
#
4949
# The short X.Y version.
50-
version = u"1.0"
50+
version = "1.0"
5151
# The full version, including alpha/beta/rc tags.
52-
release = u"1.0"
52+
release = "1.0"
5353

5454
# The language for content autogenerated by Sphinx. Refer to documentation
5555
# for a list of supported languages.
@@ -140,7 +140,7 @@
140140
(
141141
master_doc,
142142
"AdafruitBLE_Cycling_Speed_And_CadenceLibrary.tex",
143-
u"AdafruitBLE_Cycling_Speed_And_Cadence Library Documentation",
143+
"AdafruitBLE_Cycling_Speed_And_Cadence Library Documentation",
144144
author,
145145
"manual",
146146
),
@@ -154,7 +154,7 @@
154154
(
155155
master_doc,
156156
"AdafruitBLE_Cycling_Speed_And_Cadencelibrary",
157-
u"Adafruit BLE_Cycling_Speed_And_Cadence Library Documentation",
157+
"Adafruit BLE_Cycling_Speed_And_Cadence Library Documentation",
158158
[author],
159159
1,
160160
)
@@ -169,7 +169,7 @@
169169
(
170170
master_doc,
171171
"AdafruitBLE_Cycling_Speed_And_CadenceLibrary",
172-
u"Adafruit BLE_Cycling_Speed_And_Cadence Library Documentation",
172+
"Adafruit BLE_Cycling_Speed_And_Cadence Library Documentation",
173173
author,
174174
"AdafruitBLE_Cycling_Speed_And_CadenceLibrary",
175175
"One line description of project.",

0 commit comments

Comments
 (0)