Skip to content

Commit 12dc004

Browse files
committed
fix(pre-commit): Apply pre-commit fixes
1 parent 01b8f6f commit 12dc004

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: .codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[codespell]
22
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check/.codespellrc
33
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
4-
ignore-words-list = ba,licence,ot,dout,als,exten
4+
ignore-words-list = ba,licence,ot,dout,als,exten,emac
55
skip = ./.git,./.licenses,__pycache__,.clang-format,.codespellrc,.editorconfig,.flake8,.prettierignore,.yamllint.yml,.gitignore,boards.txt,platform.txt,programmers.txt
66
builtin = clear,informal,en-GB_to_en-US
77
check-filenames =

Diff for: libraries/USB/src/keyboardLayout/KeyboardLayout.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
only in Keyboard.cpp and the keyboard layout files. Layout files map
66
ASCII character codes to keyboard scan codes (technically, to USB HID
77
Usage codes), possibly altered by the SHIFT or ALT_GR modifiers.
8-
Non-ACSII characters (anything outside the 7-bit range NUL..DEL) are
8+
Non-ASCII characters (anything outside the 7-bit range NUL..DEL) are
99
not supported.
1010
1111
== Creating your own layout ==

Diff for: tools/gen_esp32part.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import sys
2323

2424
MAX_PARTITION_LENGTH = 0xC00 # 3K for partition data (96 entries) leaves 1K in a 4K sector for signature
25-
MD5_PARTITION_BEGIN = b"\xEB\xEB" + b"\xFF" * 14 # The first 2 bytes are like magic numbers for MD5 sum
25+
MD5_PARTITION_BEGIN = b"\xeb\xeb" + b"\xff" * 14 # The first 2 bytes are like magic numbers for MD5 sum
2626
PARTITION_TABLE_SIZE = 0x1000 # Size of partition table
2727

2828
MIN_PARTITION_SUBTYPE_APP_OTA = 0x10
@@ -321,7 +321,7 @@ def from_binary(cls, b):
321321
data = b[o : o + 32]
322322
if len(data) != 32:
323323
raise InputError("Partition table length must be a multiple of 32 bytes")
324-
if data == b"\xFF" * 32:
324+
if data == b"\xff" * 32:
325325
return result # got end marker
326326
if md5sum and data[:2] == MD5_PARTITION_BEGIN[:2]: # check only the magic number part
327327
if data[16:] == md5.digest():
@@ -342,7 +342,7 @@ def to_binary(self):
342342
result += MD5_PARTITION_BEGIN + hashlib.md5(result).digest()
343343
if len(result) >= MAX_PARTITION_LENGTH:
344344
raise InputError("Binary partition table length (%d) longer than max" % len(result))
345-
result += b"\xFF" * (MAX_PARTITION_LENGTH - len(result)) # pad the sector, for signing
345+
result += b"\xff" * (MAX_PARTITION_LENGTH - len(result)) # pad the sector, for signing
346346
return result
347347

348348
def to_csv(self, simple_formatting=False):
@@ -352,7 +352,7 @@ def to_csv(self, simple_formatting=False):
352352

353353

354354
class PartitionDefinition(object):
355-
MAGIC_BYTES = b"\xAA\x50"
355+
MAGIC_BYTES = b"\xaa\x50"
356356

357357
# dictionary maps flag name (as used in CSV flags list, property name)
358358
# to bit set in flags words in binary format

0 commit comments

Comments
 (0)