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

Bump black from 23.12.1 to 24.3.0 #166

Merged
merged 2 commits into from
Sep 3, 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
4 changes: 1 addition & 3 deletions blueye/sdk/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ class LogStream:
Creates a stream from a downloaded log file. Iterate over the object to get the next log record.
"""

def __init__(
self, log: bytes, decompress: bool = True
) -> Iterator[
def __init__(self, log: bytes, decompress: bool = True) -> Iterator[
Tuple[
proto.datetime_helpers.DatetimeWithNanoseconds, # Real time clock
timedelta, # Time since first message
Expand Down
1 change: 1 addition & 0 deletions examples/print_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This example program demonstrates how one can add a callback function to a telemetry message, as
well as how to adjust the frequency of that telemetry message, and how to remove the callback.
"""

import time

import blueye.protocol as bp
Expand Down
48 changes: 24 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mkdocs-macros-plugin = "^1.0"
pdocs = "^1.2"
pymdown-extensions = "^10.1"
pre-commit = "^3.3"
black = "^23.7"
black = "^24.3"
pytest-cov = "^4.1"
requests-mock = "^1.11"
freezegun = "^1.2"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def test_tilt_stabilization_state(self, mocked_drone: Drone, expected_state):
mocked_drone.features = ["tilt"]
TiltStabilizationTel = bp.TiltStabilizationTel(state={"enabled": expected_state})
TiltStabilizationTel_serialized = bp.TiltStabilizationTel.serialize(TiltStabilizationTel)
mocked_drone._telemetry_watcher._state[
bp.TiltStabilizationTel
] = TiltStabilizationTel_serialized
mocked_drone._telemetry_watcher._state[bp.TiltStabilizationTel] = (
TiltStabilizationTel_serialized
)
assert mocked_drone.camera.tilt.stabilization_enabled == expected_state

def test_set_tilt_stabilization(self, mocked_drone: Drone):
Expand Down
Loading