Skip to content

Commit

Permalink
Update pre-commit hooks (#1342)
Browse files Browse the repository at this point in the history
* update pre-commit hooks

* Fix typos

---------

Co-authored-by: farmio <[email protected]>
Co-authored-by: farmio <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2023
1 parent d8f8272 commit 544210c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude_types: [csv, json]
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py39-plus]
Expand All @@ -33,12 +33,12 @@ repos:
- --resolve-all-configs
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.289'
rev: 'v0.0.292'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-executables-have-shebangs
stages: [manual]
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Initialization of XKNX object. Constructor may take several arguments like a ref
await xknx.start()
```

Asynchronous start of the XKNX object. `xknx.start()` will connect to a KNX/IP device and either build a tunnel or connect through Mulitcast UDP.
Asynchronous start of the XKNX object. `xknx.start()` will connect to a KNX/IP device and either build a tunnel or connect through Multicast UDP.

```python
await xknx.stop()
Expand Down
2 changes: 1 addition & 1 deletion docs/xknx.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For SECURE tunnels this setting selects an interface from a given keyfile.
await xknx.start()
```

`xknx.start()` will search for KNX/IP devices in the network and either build a KNX/IP-Tunnel or open a mulitcast KNX/IP-Routing connection. `start()` will not take any parameters.
`xknx.start()` will search for KNX/IP devices in the network and either build a KNX/IP-Tunnel or open a multicast KNX/IP-Routing connection. `start()` will not take any parameters.

# [](#header-2)Stopping

Expand Down
2 changes: 1 addition & 1 deletion test/devices_tests/binary_sensor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def test_process_callback_ignore_internal_state_no_counter(self):
async_after_update_callback.assert_called_once_with(switch)

async def test_process_group_value_response(self):
"""Test precess of GroupValueResponse telegrams."""
"""Test process of GroupValueResponse telegrams."""
xknx = XKNX()
switch = BinarySensor(
xknx,
Expand Down
2 changes: 1 addition & 1 deletion xknx/io/transport/udp_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def create_multicast_sock(
return sock

async def connect(self) -> None:
"""Connect UDP socket. Open UDP port and build mulitcast socket if necessary."""
"""Connect UDP socket. Open UDP port and build multicast socket if necessary."""
udp_transport_factory = UDPTransport.UDPTransportFactory(
data_received_callback=self.data_received_callback,
)
Expand Down

0 comments on commit 544210c

Please sign in to comment.