Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent cf39c56 commit bdbd54b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
rev: v0.3.9
hooks:
- id: blackdoc
additional_dependencies: ["black==24.10.0"]
additional_dependencies: ["black==25.1.0"]
- id: blackdoc-autoupdate-black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
Expand Down
18 changes: 9 additions & 9 deletions ceos_alos2/tests/test_sar_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_flag_init(self, size, expected):
["size", "data", "expected"],
(
(1, b"\x00", False),
(1, b"\x0F", True),
(1, b"\x0f", True),
(2, b"\x00\x00", False),
),
)
Expand Down Expand Up @@ -366,8 +366,8 @@ class TestIO:
),
pytest.param(
(
b"\x00\x00\x00\x01\x00\x0A\x00\x00\x00\x00\x00\x10\x02\x03\x00\x1F"
+ b"\x00\x00\x00\x02\x00\x0A\x00\x00\x00\x00\x00\x10\x04\x05\x00\x2F"
b"\x00\x00\x00\x01\x00\x0a\x00\x00\x00\x00\x00\x10\x02\x03\x00\x1f"
+ b"\x00\x00\x00\x02\x00\x0a\x00\x00\x00\x00\x00\x10\x04\x05\x00\x2f"
),
16,
[
Expand Down Expand Up @@ -402,8 +402,8 @@ class TestIO:
),
pytest.param(
(
b"\x00\x00\x00\x01\x00\x0B\x00\x00\x00\x00\x00\x0E\x03\x04"
+ b"\x00\x00\x00\x02\x00\x0B\x00\x00\x00\x00\x00\x0E\x04\x05"
b"\x00\x00\x00\x01\x00\x0b\x00\x00\x00\x00\x00\x0e\x03\x04"
+ b"\x00\x00\x00\x02\x00\x0b\x00\x00\x00\x00\x00\x0e\x04\x05"
),
14,
[
Expand Down Expand Up @@ -474,10 +474,10 @@ def test_adjust_offsets(self, records, offset, expected):
def test_read_metadata(self, monkeypatch, rpc):
dummy_header = {"number_of_sar_data_records": 3, "sar_data_record_length": 17}
content = (
b"\x03\x0E"
+ b"\x00\x00\x00\x01\x00\x0B\x00\x00\x00\x00\x00\x11\x03\x00\x00\x00\x00"
+ b"\x00\x00\x00\x02\x00\x0B\x00\x00\x00\x00\x00\x11\x04\x00\x00\x00\x00"
+ b"\x00\x00\x00\x03\x00\x0B\x00\x00\x00\x00\x00\x11\x05\x00\x00\x00\x00"
b"\x03\x0e"
+ b"\x00\x00\x00\x01\x00\x0b\x00\x00\x00\x00\x00\x11\x03\x00\x00\x00\x00"
+ b"\x00\x00\x00\x02\x00\x0b\x00\x00\x00\x00\x00\x11\x04\x00\x00\x00\x00"
+ b"\x00\x00\x00\x03\x00\x0b\x00\x00\x00\x00\x00\x11\x05\x00\x00\x00\x00"
)
print(len(content))
dummy_record_types = {
Expand Down

0 comments on commit bdbd54b

Please sign in to comment.