Skip to content

Commit

Permalink
Merge pull request #58 from scop/renovate/major-black
Browse files Browse the repository at this point in the history
chore(deps): update black to v22 (major)
  • Loading branch information
scop committed Mar 6, 2022
2 parents e4edd2a + 2734253 commit a9f2e96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 22.1.0
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements-test.txt

black ==21.11b1
black ==22.1.0

flake8 ==4.0.1
pycodestyle ==2.8.0
Expand Down
6 changes: 3 additions & 3 deletions test_hashpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"Well, (Hi There)"),
pattern=re.compile(rb"Well, (Hi There)"),
algorithm="md5",
result=(
"Well, %s!" % _format_hash(b"9294727a3638bb1c13f48ef8158bfc9d").decode()
Expand All @@ -185,7 +185,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"(?P<name_ignored>Hi There)"),
pattern=re.compile(rb"(?P<name_ignored>Hi There)"),
algorithm="md5",
result=(
"Well, %s!" % _format_hash(b"9294727a3638bb1c13f48ef8158bfc9d").decode()
Expand All @@ -194,7 +194,7 @@ def test_grouping() -> None:
TestCase(
key=bytes.fromhex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"),
data=b"Well, Hi There!",
pattern=re.compile(br"\b(Hi There)\b"),
pattern=re.compile(rb"\b(Hi There)\b"),
algorithm="sha1",
result=(
"Well, %s!"
Expand Down

0 comments on commit a9f2e96

Please sign in to comment.