commit:     dbc1fc5a20369cf0e4dbe65b932bfa7d31cb42d8
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  2 21:18:47 2026 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  2 21:19:02 2026 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=dbc1fc5a

fix formatting

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 testdata/pkgcheck | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/testdata/pkgcheck b/testdata/pkgcheck
index 6cd18e8f..ba98c6c6 100755
--- a/testdata/pkgcheck
+++ b/testdata/pkgcheck
@@ -13,35 +13,36 @@ from pkgcore import const as pkgcore_const
 
 # make sure to use git repo version of pkgcheck
 main_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
-src_dir = pjoin(main_dir, 'src')
+src_dir = pjoin(main_dir, "src")
 sys.path.insert(0, src_dir)
 from pkgcheck.scripts import run
 
-
-with tempfile.TemporaryDirectory(prefix='pkgcheck-test-config-') as tempdir:
-    stubrepo = pjoin(pkgcore_const.DATA_PATH, 'stubrepo')
-    repo_dir = pjoin(main_dir, 'testdata', 'repos')
-    with open(pjoin(tempdir, 'repos.conf'), 'w') as f:
-        f.write(textwrap.dedent(f"""\
+with tempfile.TemporaryDirectory(prefix="pkgcheck-test-config-") as tempdir:
+    stubrepo = pjoin(pkgcore_const.DATA_PATH, "stubrepo")
+    repo_dir = pjoin(main_dir, "testdata", "repos")
+    with open(pjoin(tempdir, "repos.conf"), "w") as f:
+        f.write(
+            textwrap.dedent(f"""\
             [DEFAULT]
             main-repo = stubrepo
             [stubrepo]
             location = {stubrepo}
-        """))
+        """)
+        )
         for repo in os.listdir(repo_dir):
-            f.write(f'[{repo}]\nlocation = {pjoin(repo_dir, repo)}\n')
+            f.write(f"[{repo}]\nlocation = {pjoin(repo_dir, repo)}\n")
 
     # create make.profile symlink
-    profile_path = pjoin(stubrepo, 'profiles', 'default')
-    os.symlink(profile_path, pjoin(tempdir, 'make.profile'))
+    profile_path = pjoin(stubrepo, "profiles", "default")
+    os.symlink(profile_path, pjoin(tempdir, "make.profile"))
 
     args = sys.argv[1:]
     try:
-        if args[0] == 'scan':
+        if args[0] == "scan":
             # ignore system/user config settings
-            args = ['scan', '--config', 'no', '--cache-dir', tempdir] + 
args[1:]
+            args = ["scan", "--config", "no", "--cache-dir", tempdir] + 
args[1:]
     except IndexError:
         pass
-    args = ['pkgcheck', '--config', tempdir] + args
-    with patch('sys.argv', args):
-        run('pkgcheck')
+    args = ["pkgcheck", "--config", tempdir] + args
+    with patch("sys.argv", args):
+        run("pkgcheck")

Reply via email to