Skip to content

Commit 946abf3

Browse files
committed
Linting
1 parent 5d0c8e7 commit 946abf3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pre_commit_hooks/check_for_go_fips_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ def check_go_fips_compliance(melange_cfg: dict[str, Any]) -> tuple[bool, list[st
7979
subpkg_has_emptypackage_test = True
8080

8181
# If subpackage has emptypackage test, it doesn't need go-fips test
82-
if subpkg_uses_fips and not subpkg_has_test and not subpkg_has_emptypackage_test:
82+
if (
83+
subpkg_uses_fips
84+
and not subpkg_has_test
85+
and not subpkg_has_emptypackage_test
86+
):
8387
issues.append(
8488
f"subpackage '{subpkg_name}' uses go-fips but lacks test/go-fips-check",
8589
)

0 commit comments

Comments
 (0)