Repository: marshmallow-code/marshmallow
Pull request #2096 (2023-02-06 23:10:16)

[pre-commit.ci] pre-commit autoupdate
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)
<!--pre-commit.ci end-->


Patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 79d7c6a0..8f098a7c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,7 +5,7 @@ repos:
   - id: pyupgrade
     args: [--py37-plus]
 - repo: https://github.com/psf/black
-  rev: 22.12.0
+  rev: 23.1.0
   hooks:
   - id: black
     language_version: python3


Test patch:
diff --git a/tests/test_deserialization.py b/tests/test_deserialization.py
index 32aa0991..7d4c407f 100644
--- a/tests/test_deserialization.py
+++ b/tests/test_deserialization.py
@@ -258,7 +258,6 @@ class TestFieldDeserialization:
     @pytest.mark.parametrize("allow_nan", (None, False, True))
     @pytest.mark.parametrize("value", ("nan", "-nan", "inf", "-inf"))
     def test_float_field_allow_nan(self, value, allow_nan):
-
         if allow_nan is None:
             # Test default case is False
             field = fields.Float()
diff --git a/tests/test_registry.py b/tests/test_registry.py
index eafb203e..7f43cd70 100644
--- a/tests/test_registry.py
+++ b/tests/test_registry.py
@@ -52,7 +52,6 @@ def test_register_class_meta_option():
 
 
 def test_serializer_class_registry_register_same_classname_different_module():
-
     reglen = len(class_registry._registry)
 
     type("MyTestRegSchema", (Schema,), {"__module__": "modA"})
@@ -83,7 +82,6 @@ def test_serializer_class_registry_register_same_classname_different_module():
 
 
 def test_serializer_class_registry_override_if_same_classname_same_module():
-
     reglen = len(class_registry._registry)
 
     type("MyTestReg2Schema", (Schema,), {"__module__": "SameModulePath"})
diff --git a/tests/test_serialization.py b/tests/test_serialization.py
index 56f0773e..b698d864 100644
--- a/tests/test_serialization.py
+++ b/tests/test_serialization.py
@@ -146,7 +146,6 @@ class TestFieldSerialization:
         assert field.serialize("uuid2", user) is None
 
     def test_ip_address_field(self, user):
-
         ipv4_string = "192.168.0.1"
         ipv6_string = "ffff::ffff"
         ipv6_exploded_string = ipaddress.ip_address("ffff::ffff").exploded
@@ -167,7 +166,6 @@ class TestFieldSerialization:
         assert field_exploded.serialize("ipv6", user) == ipv6_exploded_string
 
     def test_ipv4_address_field(self, user):
-
         ipv4_string = "192.168.0.1"
 
         user.ipv4 = ipaddress.ip_address(ipv4_string)
@@ -179,7 +177,6 @@ class TestFieldSerialization:
         assert field.serialize("empty_ip", user) is None
 
     def test_ipv6_address_field(self, user):
-
         ipv6_string = "ffff::ffff"
         ipv6_exploded_string = ipaddress.ip_address("ffff::ffff").exploded
 
@@ -196,7 +193,6 @@ class TestFieldSerialization:
         assert field_exploded.serialize("ipv6", user) == ipv6_exploded_string
 
     def test_ip_interface_field(self, user):
-
         ipv4interface_string = "192.168.0.1/24"
         ipv6interface_string = "ffff::ffff/128"
         ipv6interface_exploded_string = ipaddress.ip_interface(
@@ -222,7 +218,6 @@ class TestFieldSerialization:
         )
 
     def test_ipv4_interface_field(self, user):
-
         ipv4interface_string = "192.168.0.1/24"
 
         user.ipv4interface = ipaddress.ip_interface(ipv4interface_string)
@@ -234,7 +229,6 @@ class TestFieldSerialization:
         assert field.serialize("empty_ipinterface", user) is None
 
     def test_ipv6_interface_field(self, user):
-
         ipv6interface_string = "ffff::ffff/128"
         ipv6interface_exploded_string = ipaddress.ip_interface(
             "ffff::ffff/128"