From e22e56df0aad6994c4587f510398377c3fc927c6 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 May 2026 21:42:49 +0000
Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

updates:
- https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror
- [github.com/psf/black-pre-commit-mirror: 24.1.1 → 26.5.0](https://github.com/psf/black-pre-commit-mirror/compare/24.1.1...26.5.0)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0)
- [github.com/PyCQA/flake8: 7.0.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.0.0...7.3.0)
---
 .pre-commit-config.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4b7b6fd..6a3c757 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,19 +1,19 @@
 repos:
-  - repo: https://github.com/psf/black
-    rev: 24.1.1
+  - repo: https://github.com/psf/black-pre-commit-mirror
+    rev: 26.5.0
     hooks:
       - id: black
         args: [--safe, --quiet]
         language_version: python3
 
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.5.0
+    rev: v6.0.0
     hooks:
       - id: trailing-whitespace
       - id: end-of-file-fixer
 
   - repo: https://github.com/PyCQA/flake8
-    rev: 7.0.0
+    rev: 7.3.0
     hooks:
       - id: flake8
         exclude: docs

From 27983c454d0203ac68867264c3cefc364a2d0157 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 18 May 2026 21:44:34 +0000
Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
---
 tests/test_metadata.py | 54 ++++++++++++++----------------------------
 1 file changed, 18 insertions(+), 36 deletions(-)

diff --git a/tests/test_metadata.py b/tests/test_metadata.py
index 4787755..0bc540d 100644
--- a/tests/test_metadata.py
+++ b/tests/test_metadata.py
@@ -8,14 +8,12 @@
 
 
 def test_metadata(pytester):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             for k in ['Python', 'Platform', 'Packages']:
                 assert k in metadata
                 assert 'JENKINS_URL' not in metadata
-    """
-    )
+    """)
     result = pytester.runpytest()
     assert result.ret == 0
 
@@ -23,25 +21,21 @@ def test_pass(metadata):
 def test_environment_variables(pytester, monkeypatch):
     monkeypatch.setenv("JENKINS_URL", "foo")
     monkeypatch.setenv("GIT_COMMIT", "bar")
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('JENKINS_URL') == 'foo'
             assert metadata.get('GIT_COMMIT') == 'bar'
-    """
-    )
+    """)
     result = pytester.runpytest()
     assert result.ret == 0
 
 
 def test_additional_metadata(pytester):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('Dave') == 'Hunt'
             assert metadata.get('Jim') == 'Bob'
-    """
-    )
+    """)
     result = pytester.runpytest(
         "--metadata", "Dave", "Hunt", "--metadata", "Jim", "Bob"
     )
@@ -50,16 +44,14 @@ def test_pass(metadata):
 
 @pytest.mark.parametrize("junit_format", ["xunit1", "xunit2"])
 def test_junit_integration(pytester, junit_format):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         import pytest
 
         pytestmark = pytest.mark.usefixtures('include_metadata_in_junit_xml')
 
         def test_pass():
             pass
-    """
-    )
+    """)
     result = pytester.runpytest(
         "--metadata",
         "Daffy",
@@ -79,23 +71,19 @@ def test_pass():
 
 
 def test_additional_metadata_from_json(pytester):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('Imran') == 'Mumtaz'
-    """
-    )
+    """)
     result = pytester.runpytest("--metadata-from-json", '{"Imran": "Mumtaz"}')
     assert result.ret == 0
 
 
 def test_additional_metadata_from_json_file(pytester):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('John') == 'Cena'
-    """
-    )
+    """)
     pytester.makefile(".json", temp='{"John": "Cena"}')
 
     result = pytester.runpytest("--metadata-from-json-file", "temp.json")
@@ -103,14 +91,12 @@ def test_pass(metadata):
 
 
 def test_additional_metadata_using_key_values_json_str_and_file(pytester):
-    pytester.makepyfile(
-        """
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('John') == 'Cena'
             assert metadata.get('Dwayne') == 'Johnson'
             assert metadata.get('Andre') == 'The Giant'
-    """
-    )
+    """)
     pytester.makefile(".json", temp='{"Andre": "The Giant"}')
 
     result = pytester.runpytest(
@@ -126,20 +112,16 @@ def test_pass(metadata):
 
 
 def test_metadata_hook(pytester):
-    pytester.makeconftest(
-        """
+    pytester.makeconftest("""
         import pytest
         @pytest.hookimpl(optionalhook=True)
         def pytest_metadata(metadata):
             metadata['Dave'] = 'Hunt'
-    """
-    )
-    pytester.makepyfile(
-        """
+    """)
+    pytester.makepyfile("""
         def test_pass(metadata):
             assert metadata.get('Dave') == 'Hunt'
-    """
-    )
+    """)
     result = pytester.runpytest()
     assert result.ret == 0
 
