Skip to content

Commit

Permalink
Bump pre-commit config and update
Browse files Browse the repository at this point in the history
  • Loading branch information
kauwua committed Jul 16, 2024
1 parent d23ad81 commit f2edf2c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
rev: v2.3.1
hooks:
- id: autopep8
- repo: https://github.com/pylint-dev/pylint
rev: v3.0.2
rev: v3.2.5
hooks:
- id: pylint
- repo: https://github.com/pre-commit/mirrors-clang-format
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/test_hspi_serdes.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def check(array_in):
intf,
find_all=True,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN))

assert ep_in is not None
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/test_loopback.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ def send_next_packet(head, ep_in, ep_out, endp_max_packet_size, buffer_in, buffe
intf,
find_all=True,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN))

ep_out = list(usb.util.find_descriptor(
intf,
# match the first OUT endpoint
find_all=True,
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT))

assert ep_in is not None
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/test_loopback_randomize_packetsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ def send_next_packet(head, ep_in, ep_out, endp_max_packet_size, buffer_in, buffe
intf,
find_all=True,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN))

ep_out = list(usb.util.find_descriptor(
intf,
# match the first OUT endpoint
find_all=True,
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT))

assert ep_in is not None
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/test_speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@
ep_in = usb.util.find_descriptor(
intf,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN)

ep_out = usb.util.find_descriptor(
intf,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT)

assert ep_in is not None
Expand Down
8 changes: 4 additions & 4 deletions tests/scripts/test_speedtest_one_by_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
ep_in = usb.util.find_descriptor(
intf,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN)

ep_out = usb.util.find_descriptor(
intf,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT)

assert ep_in is not None
Expand Down
8 changes: 4 additions & 4 deletions tools/scripts/print_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
intf,
find_all=True,
# match the first OUT endpoint
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_IN))

ep_out = list(usb.util.find_descriptor(
intf,
# match the first OUT endpoint
find_all=True,
custom_match=lambda e: \
usb.util.endpoint_direction(e.bEndpointAddress) == \
custom_match=lambda e:
usb.util.endpoint_direction(e.bEndpointAddress) ==
usb.util.ENDPOINT_OUT))

assert ep_in is not None
Expand Down

0 comments on commit f2edf2c

Please sign in to comment.