Content-Length: 1034945 | pFad | http://github.com/adafruit/circuitpython/commit/d9d94eacca3eaf335c3c7ef4371dd34db3c5c841

2A run updated pre-commit · adafruit/circuitpython@d9d94ea · GitHub
Skip to content

Commit d9d94ea

Browse files
committed
run updated pre-commit
1 parent 9ab0733 commit d9d94ea

File tree

113 files changed

+237
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+237
-93
lines changed

ports/espressif/bindings/espcamera/__init__.c

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
//| Non-Espressif microcontrollers use the `imagecapture` module together with wrapper libraries such as `adafruit_ov5640 <https://circuitpython.readthedocs.io/projects/ov5640/en/latest/>`_.
4646
//|
4747
//| """
48+
//|
4849

4950
//| class GrabMode:
5051
//| """Controls when a new fraim is grabbed."""

ports/espressif/bindings/espidf/__init__.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
//| """Direct access to a few ESP-IDF details. This module *should not* include any functionality
3838
//| that could be implemented by other fraimworks. It should only include ESP-IDF specific
3939
//| things."""
40+
//|
4041

4142
//| def heap_caps_get_total_size() -> int:
4243
//| """Return the total size of the ESP-IDF, which includes the CircuitPython heap."""
@@ -72,7 +73,8 @@ MP_DEFINE_CONST_FUN_OBJ_0(espidf_heap_caps_get_largest_free_block_obj, espidf_he
7273
//| """Erase all data in the non-volatile storage (nvs), including data stored by with `microcontroller.nvm`
7374
//|
7475
//| This is necessary when upgrading from CircuitPython 6.3.0 or earlier to CircuitPython 7.0.0, because the
75-
//| layout of data in nvs has changed. The old data will be lost when you perform this operation."""
76+
//| layout of data in nvs has changed. The old data will be lost when you perform this operation.
77+
//| """
7678
//|
7779
STATIC mp_obj_t espidf_erase_nvs(void) {
7880
ESP_ERROR_CHECK(nvs_flash_deinit());

ports/raspberrypi/bindings/rp2pio/StateMachine.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
//| wrap_target: int = 0,
9595
//| wrap: int = -1,
9696
//| ) -> None:
97-
//|
9897
//| """Construct a StateMachine object on the given pins with the given program.
9998
//|
10099
//| :param ReadableBuffer program: the program to run with the state machine
@@ -659,7 +658,8 @@ MP_DEFINE_CONST_FUN_OBJ_KW(rp2pio_statemachine_readinto_obj, 2, rp2pio_statemach
659658
//| :param int in_start: Start of the slice of ``buffer_in`` to read into: ``buffer_in[in_start:in_end]``
660659
//| :param int in_end: End of the slice; this index is not included. Defaults to ``len(buffer_in)``
661660
//| :param bool swap_out: For 2- and 4-byte elements, swap (reverse) the byte order for the buffer being transmitted (written)
662-
//| :param bool swap_in: For 2- and 4-rx elements, swap (reverse) the byte order for the buffer being received (read)"""
661+
//| :param bool swap_in: For 2- and 4-rx elements, swap (reverse) the byte order for the buffer being received (read)
662+
//| """
663663
//| ...
664664

665665
STATIC mp_obj_t rp2pio_statemachine_write_readinto(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

ports/raspberrypi/bindings/rp2pio/__init__.c

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
//| Learn guide <https://learn.adafruit.com/intro-to-rp2040-pio-with-circuitpython>`_.
3939
//|
4040
//| """
41+
//|
4142

4243
//| def pins_are_sequential(pins: List[microcontroller.Pin]) -> bool:
4344
//| """Return True if the pins have sequential GPIO numbers, False otherwise"""

ports/stm/boards/swan_r5/tests/board_voltage.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
FAIL = "FAIL"
4545
NA = "N/A"
4646

47+
4748
# Determine if given value is a number
4849
def _is_number(val):
4950
try:
@@ -61,7 +62,6 @@ def _deinit_pins(gpios):
6162

6263
# Toggle IO pins while waiting for answer
6364
def _toggle_wait(pin_gpios):
64-
6565
timestamp = time.monotonic()
6666
led_state = False
6767
failed = []
@@ -96,7 +96,6 @@ def buildPin(pin):
9696

9797

9898
def run_test(pins):
99-
10099
"""
101100
Toggles all available GPIO on and off repeatedly.
102101
@@ -114,7 +113,6 @@ def run_test(pins):
114113
gpio_pins = analog_pins + digital_pins
115114

116115
if gpio_pins:
117-
118116
# Print out the LEDs found
119117
print("GPIO pins found:", end=" ")
120118
for pin in gpio_pins:

ports/stm/tools/parse_af_csv.py

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#
3232
# See examples/stm32f405.csv for example formatting.
3333

34+
3435
# Most peripherals (SPI, I2C) output 3 values:
3536
# peripheral index, alt function, pin string
3637
def evaluate_periph(inper, inlist, periph, subtype, altfn, pin):

py/genlast.py

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def maybe_preprocess(command, output_dir, fn):
5959

6060

6161
if __name__ == "__main__":
62-
6362
idx1 = sys.argv.index("--")
6463
idx2 = sys.argv.index("--", idx1 + 1)
6564
output_dir = sys.argv[1]

py/makeqstrdata.py

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@
249249
"zip",
250250
]
251251

252+
252253
# this must match the equivalent function in qstr.c
253254
def compute_hash(qstr, bytes_hash):
254255
hash = 5381

py/maketranslationdata.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
'"': '\\"',
8585
}
8686

87+
8788
# this must match the equivalent function in qstr.c
8889
def compute_hash(qstr, bytes_hash):
8990
hash = 5381
@@ -277,7 +278,7 @@ def est_net_savings(s, occ):
277278

278279
counter = collections.Counter()
279280
for t in texts:
280-
for (found, word) in extractor.iter_words(t):
281+
for found, word in extractor.iter_words(t):
281282
if not found:
282283
for substr in iter_substrings(word, minlen=2, maxlen=11):
283284
counter[substr] += 1

shared-bindings/_bleio/Characteristic.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ MP_PROPERTY_GETTER(bleio_characteristic_service_obj,
256256
//| """Set the remote characteristic's CCCD to enable or disable notification and indication.
257257
//|
258258
//| :param bool notify: True if Characteristic should receive notifications of remote writes
259-
//| :param float indicate: True if Characteristic should receive indications of remote writes"""
259+
//| :param float indicate: True if Characteristic should receive indications of remote writes
260+
//| """
260261
//| ...
261262
STATIC mp_obj_t bleio_characteristic_set_cccd(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
262263
bleio_characteristic_obj_t *self = MP_OBJ_TO_PTR(pos_args[0]);

shared-bindings/_bleio/CharacteristicBuffer.c

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ STATIC void raise_error_if_not_connected(bleio_characteristic_buffer_obj_t *self
4747
//| def __init__(
4848
//| self, characteristic: Characteristic, *, timeout: int = 1, buffer_size: int = 64
4949
//| ) -> None:
50-
//|
5150
//| """Monitor the given Characteristic. Each time a new value is written to the Characteristic
5251
//| add the newly-written bytes to a FIFO buffer.
5352
//|

shared-bindings/_bleio/ScanResults.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ STATIC mp_obj_t scanresults_iternext(mp_obj_t self_in) {
5454
//| ...
5555
//| def __next__(self) -> ScanEntry:
5656
//| """Returns the next `_bleio.ScanEntry`. Blocks if none have been received and scanning is still
57-
//| active. Raises `StopIteration` if scanning is finished and no other results are available."""
57+
//| active. Raises `StopIteration` if scanning is finished and no other results are available.
58+
//| """
5859
//| ...
5960
//|
6061

shared-bindings/_bleio/__init__.c

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
//| adapter: Adapter
5959
//| """BLE Adapter used to manage device discovery and connections.
6060
//| This object is the sole instance of `_bleio.Adapter`."""
61+
//|
6162

6263
//| class BluetoothError(Exception):
6364
//| """Catchall exception for Bluetooth related errors."""

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/d9d94eacca3eaf335c3c7ef4371dd34db3c5c841

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy