Skip to content

Commit 52f08a6

Browse files
committed
Chore: update and pin black version
1 parent e42bc86 commit 52f08a6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/lint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: psf/black@stable
1414
with:
1515
options: "--check --verbose --diff --color"
16+
version: "25.1.0"
1617

1718
ruff:
1819
runs-on: ubuntu-latest

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- uses: psf/black@stable
1212
with:
1313
options: "--check --verbose --diff --color"
14+
version: "25.1.0"
1415

1516
ruff:
1617
runs-on: ubuntu-latest

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: requirements-txt-fixer
1313

1414
- repo: https://github.com/psf/black
15-
rev: 24.1.1
15+
rev: 25.1.0
1616
hooks:
1717
- id: black
1818

tests/test_common/test_magic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def test_replace_binary_id(self):
6868
query = {"_id": "$$Binary_ID{$$IPv4{127.0.0.1}}"}
6969
expected = {
7070
"_id": {
71-
"$gte": Binary(b"\x7F\x00\x00\x01" + (b"\x00" * 8), subtype=BINARY_SUBTYPE),
72-
"$lt": Binary(b"\x7F\x00\x00\x01" + (b"\xFF" * 8), subtype=BINARY_SUBTYPE),
71+
"$gte": Binary(b"\x7f\x00\x00\x01" + (b"\x00" * 8), subtype=BINARY_SUBTYPE),
72+
"$lt": Binary(b"\x7f\x00\x00\x01" + (b"\xff" * 8), subtype=BINARY_SUBTYPE),
7373
}
7474
}
7575
self.assertEqual(search_and_replace(query), expected)
@@ -84,7 +84,7 @@ def test_replace_binary_id_mac(self):
8484
expected = {
8585
"_id": {
8686
"$gte": Binary(b"\x00\x11\x22\x33\x44\x55" + (b"\x00" * 8), subtype=BINARY_SUBTYPE),
87-
"$lt": Binary(b"\x00\x11\x22\x33\x44\x55" + (b"\xFF" * 8), subtype=BINARY_SUBTYPE),
87+
"$lt": Binary(b"\x00\x11\x22\x33\x44\x55" + (b"\xff" * 8), subtype=BINARY_SUBTYPE),
8888
}
8989
}
9090
self.assertEqual(search_and_replace(query), expected)

0 commit comments

Comments
 (0)