From 17f159189a4a549089aac2201e16e25663b12eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0oltis?= Date: Wed, 6 Mar 2024 13:59:41 +0100 Subject: [PATCH] reformat code to pass GH actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Ĺ oltis --- cachi2/core/package_managers/yarn/project.py | 1 + cachi2/core/package_managers/yarn/resolver.py | 1 + tests/unit/package_managers/test_pip.py | 8 +++++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cachi2/core/package_managers/yarn/project.py b/cachi2/core/package_managers/yarn/project.py index 301067192..6352ba229 100644 --- a/cachi2/core/package_managers/yarn/project.py +++ b/cachi2/core/package_managers/yarn/project.py @@ -4,6 +4,7 @@ It also provides basic utility functions. The main logic to resolve and prefetch the dependencies should be implemented in other modules. """ + import json import logging import re diff --git a/cachi2/core/package_managers/yarn/resolver.py b/cachi2/core/package_managers/yarn/resolver.py index 2aa66f538..08a18720b 100644 --- a/cachi2/core/package_managers/yarn/resolver.py +++ b/cachi2/core/package_managers/yarn/resolver.py @@ -4,6 +4,7 @@ It also performs the necessary validations to avoid allowing an invalid project to keep being processed. """ + import json import logging import zipfile diff --git a/tests/unit/package_managers/test_pip.py b/tests/unit/package_managers/test_pip.py index 57a9994e3..2f107ab0c 100644 --- a/tests/unit/package_managers/test_pip.py +++ b/tests/unit/package_managers/test_pip.py @@ -2804,9 +2804,11 @@ def test_process_package_distributions_with_checksums( package_name, version, "wheel", - digests={"sha128": "abcdef", "sha256": "abcdef", "sha512": "yyyyyy"} - if use_pypi_digests - else {}, + digests=( + {"sha128": "abcdef", "sha256": "abcdef", "sha512": "yyyyyy"} + if use_pypi_digests + else {} + ), ), ], None,