Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pre-commit.ci): pre-commit autoupdate #183

Merged
merged 2 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.0.0
rev: v4.1.0
hooks:
- id: commitizen
stages: [commit-msg]
Expand All @@ -34,7 +34,7 @@ repos:
- id: prettier
args: ["--tab-width", "2"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py37-plus]
Expand All @@ -55,7 +55,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy
additional_dependencies: []
Expand Down
2 changes: 1 addition & 1 deletion src/bluetooth_adapters/systems/linux_hci.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
dev = hci_dev_info()
dev.dev_id = dev_req.dev_id
ret = fcntl.ioctl(sock.fileno(), HCIGETDEVINFO, dev)
info = {str(k): getattr(dev, k) for k, v_ in dev._fields_}
info = {str(k): getattr(dev, k) for k, *v_ in dev._fields_}

Check warning on line 94 in src/bluetooth_adapters/systems/linux_hci.py

View check run for this annotation

Codecov / codecov/patch

src/bluetooth_adapters/systems/linux_hci.py#L94

Added line #L94 was not covered by tests
info["bdaddr"] = str(info["bdaddr"])
info["name"] = info["name"].decode()
out[int(dev.dev_id)] = info
Expand Down
Loading