Skip to content

Commit e9ebbd4

Browse files
Improve docstrings for pipelines
Suggested-by: Philippe Ombredanne <pombredanne@nexb.com> Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent b9da877 commit e9ebbd4

4 files changed

Lines changed: 13 additions & 15 deletions

File tree

scanpipe/pipelines/load_sbom.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626

2727
class LoadSBOM(ScanCodebase):
2828
"""
29-
Detects and loads all associated packages from SBOMs.
29+
Load package data from one or more SBOMs.
3030
3131
Supported BOMs:
3232
- SPDX document
3333
- CycloneDX BOM
34-
- AboutCode ABOUT file
34+
Other formats:
35+
- AboutCode .ABOUT files for package curations.
3536
"""
3637

3738
@classmethod

scanpipe/pipelines/resolve_dependencies.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626

2727
class ResolveDependencies(ScanCodebase):
2828
"""
29-
Resolve dependencies from package manifests/lockfiles.
29+
Resolve dependencies from packages manifests and lockfiles.
3030
31-
This pipeline inspects codebase lockfiles/manifest files
32-
which contain package requirements and resolve their
33-
associated packages.
31+
This pipeline collects lockfiles and manifest files
32+
that contain dependencies requirements and resolve these
33+
to a concrete set of package versions.
3434
35-
Supports resolved packages for:
36-
- Python: using nexB/python-inspector, supports requirements.txt and
37-
setup.py manifests as input
35+
Supports resolving packages for:
36+
- Python: using python-inspector, using requirements.txt and
37+
setup.py manifests as inputs
3838
"""
3939

4040
@classmethod
@@ -50,10 +50,7 @@ def steps(cls):
5050
)
5151

5252
def get_manifest_inputs(self):
53-
"""
54-
Locate all the package manifest files for which package resolvers are
55-
supported, in the codebase resources.
56-
"""
53+
"""Locate package manifest files with a supported package resolver."""
5754
self.manifest_resources = resolve.get_manifest_resources(self.project)
5855

5956
def get_packages_from_manifest(self):

scanpipe/pipelines/scan_codebase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ScanCodebase(Pipeline):
3232
3333
This pipeline does not further scan the files contained in a package
3434
for license and copyrights and only considers the declared license
35-
of a package.
35+
of a package. It does not scan for system (Linux distro) packages.
3636
"""
3737

3838
@classmethod

scanpipe/pipelines/scan_single_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
class ScanSinglePackage(Pipeline):
3838
"""
39-
Scan a single package file or package archive.
39+
Scan a single package archive (or package manifest file).
4040
4141
This pipeline scans a single package for package
4242
metadata, declared dependencies, licenses, and copyrights.

0 commit comments

Comments
 (0)