Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.3.0 (#166)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.3.0

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* Format with black 24.3

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sindre Hansen <[email protected]>
  • Loading branch information
dependabot[bot] and sindrehan authored Sep 3, 2024
1 parent 7b24187 commit 1fcf980
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 31 deletions.
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

0 comments on commit 1fcf980

Please sign in to comment.