From e85cd77dd29dcdbc9e74c9ed8b442d02e452c9cc Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 9 Aug 2024 15:07:23 +0000 Subject: [PATCH] GitHub Action: Apply Pep8-formatting --- test/integration_test.py | 3 ++- test/spack_commands.py | 4 ++-- test/unit_test.py | 1 + tools/package_overlap.py | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/integration_test.py b/test/integration_test.py index 674408720d..3dca6c709e 100644 --- a/test/integration_test.py +++ b/test/integration_test.py @@ -23,7 +23,8 @@ def test_icon_fcgroup(): def test_icon_extra_config_args(): - spack_spec("icon extra-config-args=--disable-new_feature,--enable-old_config_arg") + spack_spec( + "icon extra-config-args=--disable-new_feature,--enable-old_config_arg") def test_int2lm_parallel(): diff --git a/test/spack_commands.py b/test/spack_commands.py index fcf3fce8f6..93998f146e 100644 --- a/test/spack_commands.py +++ b/test/spack_commands.py @@ -6,11 +6,11 @@ REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") PACKAGES_DIR = os.path.join(REPO_DIR, "repo", "packages") ALL_PACKAGES = [ - name - for name in os.listdir(PACKAGES_DIR) + name for name in os.listdir(PACKAGES_DIR) if os.path.isdir(os.path.join(PACKAGES_DIR, name)) ] + def time_format(seconds) -> str: "Returns a string formatted as 'XXh YYm ZZ.ZZs'." diff --git a/test/unit_test.py b/test/unit_test.py index 140ecde699..e024555fe9 100644 --- a/test/unit_test.py +++ b/test/unit_test.py @@ -3,6 +3,7 @@ class TimeFormatTest(unittest.TestCase): + def test_example(self): self.assertEqual(time_format(0.123), "0.12s") self.assertEqual(time_format(123.456), "2m 3.46s") diff --git a/tools/package_overlap.py b/tools/package_overlap.py index 4088530521..4a970fd06d 100644 --- a/tools/package_overlap.py +++ b/tools/package_overlap.py @@ -1,4 +1,5 @@ import os + spack = set(os.listdir("./spack/var/spack/repos/builtin/packages")) spack_c2sm = set(os.listdir("./repo/packages"))