Skip to content

Commit 264c173

Browse files
committed
Update ScanAndFingerprintPackage pipeline
* Use fingerprint_codebase method from FingerprintCodebase pipeline Signed-off-by: Jono Yang <[email protected]>
1 parent 1afc7b8 commit 264c173

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/matchcode_toolkit/pipelines/scan_and_fingerprint_package.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
from scanpipe.pipelines.scan_single_package import ScanSinglePackage
2424
from scanpipe.pipes import matchcode
2525

26+
from matchcode_toolkit.pipelines.fingerprint_codebase import FingerprintCodebase
2627

27-
class ScanAndFingerprintPackage(ScanSinglePackage):
28+
29+
class ScanAndFingerprintPackage(FingerprintCodebase, ScanSinglePackage):
2830
"""
2931
Scan a single package file or package archive with ScanCode-toolkit, then
3032
calculate the directory fingerprints of the codebase.
@@ -55,9 +57,3 @@ def steps(cls):
5557
"--classify",
5658
"--summary",
5759
]
58-
59-
def fingerprint_codebase(self):
60-
"""
61-
Compute directory fingerprints for matching purposes
62-
"""
63-
matchcode.fingerprint_codebase_directories(self.project)

0 commit comments

Comments
 (0)