-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from sw360/fix_typos
docs: fix typos with codespell
- Loading branch information
Showing
32 changed files
with
102 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2019-23 Siemens | ||
# Copyright (c) 2019-24 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected] | ||
# | ||
|
@@ -105,7 +105,7 @@ def emit(self, record: logging.LogRecord) -> None: | |
|
||
class ColorFormatter(logging.Formatter): | ||
""" | ||
A logging formatter for color cosole output. | ||
A logging formatter for color console output. | ||
Critical messages and errors are displayed in red. | ||
Warnings are displayed in yellow. | ||
Infos are displayed in white. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2021-2023 Siemens | ||
# Copyright (c) 2021-2024 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected] | ||
# | ||
|
@@ -51,7 +51,7 @@ def __init__(self) -> None: | |
@staticmethod | ||
def get_granularity_list(download_url: str) -> None: | ||
'''This will only download granularity file from a public repository. | ||
Make sure to give the raw version of the granularity file seperated by ;''' | ||
Make sure to give the raw version of the granularity file separated by ;''' | ||
response = requests.get(download_url) | ||
response.raise_for_status() | ||
with open('granularity_list.csv', 'wb') as f1: | ||
|
@@ -229,7 +229,7 @@ def run(self, args: Any) -> None: | |
print("optional arguments:") | ||
print(" -h, --help show this help message and exit") | ||
print(" -i INPUTFILE SBOM file to read from (JSON)") | ||
print(" -o OUTPUTFILE write updated to this file (optinal)") | ||
print(" -o OUTPUTFILE write updated to this file (optional)") | ||
print(" -v be verbose") | ||
print(" -rg read the granularity list file from the URL specified") | ||
print(" -lg read the granularity list file from local") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2021-2023 Siemens | ||
# Copyright (c) 2021-2024 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected], [email protected] | ||
# | ||
|
@@ -37,7 +37,7 @@ class DiffType(str, Enum): | |
# New component. | ||
NEW = "NEW" | ||
|
||
# Obolete component. | ||
# Obsolete component. | ||
OBSOLETE = "OBSOLETE" | ||
|
||
# A minor update, i.e. x.y.z => x.y.z+1 or x.y.z => x.y+1.zz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2019-23 Siemens | ||
# Copyright (c) 2019-24 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected] | ||
# | ||
|
@@ -84,7 +84,7 @@ def filter_exceptions(self, partsBomItem: List[str]) -> List[str]: | |
return partsBomItem | ||
|
||
def similar_name_match(self, component: Component, release: Dict[str, Any]) -> bool: | ||
"""Determine whether there is a relase with a similar name. Similar means | ||
"""Determine whether there is a release with a similar name. Similar means | ||
a combination of name words...""" | ||
SIMILARITY_THRESHOLD = 2 | ||
separators = {"-", "@", "_"} | ||
|
@@ -893,7 +893,7 @@ def setup_cache(self, args: Any) -> None: | |
capycli.common.file_support.create_backup(ComponentCacheManagement.CACHE_ALL_RELEASES) | ||
|
||
if args.refresh_cache: | ||
print_text(" Running forced component cache refesh...") | ||
print_text(" Running forced component cache refresh...") | ||
self.releases = self.refresh_component_cache( | ||
cachefile, True, args.sw360_token, oauth2=args.oauth2, sw360_url=args.sw360_url) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2022-2023 Siemens | ||
# Copyright (c) 2022-2024 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected] | ||
# | ||
|
@@ -137,7 +137,7 @@ def __ne__(self, other: ComparableVersion | object) -> bool: | |
return self.version.__ne__(other.version) | ||
|
||
def __le__(self, other: ComparableVersion) -> bool: | ||
"""descries less than or equal to (<=)""" | ||
"""describes less than or equal to (<=)""" | ||
try: | ||
return self.compare(other) <= 0 | ||
except IncompatibleVersionError: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ------------------------------------------------------------------------------- | ||
# Copyright (c) 2020-2023 Siemens | ||
# Copyright (c) 2020-2024 Siemens | ||
# All Rights Reserved. | ||
# Author: [email protected], [email protected] | ||
# | ||
|
@@ -223,7 +223,7 @@ def create_full_dependency_list_from_maven_list_file(self, maven_list_file: str, | |
mvn dependency:list | ||
:return a list of the local Python packages | ||
:rtype list of package item dictionaries, as retuned by pip | ||
:rtype list of package item dictionaries, as returned by pip | ||
""" | ||
if raw_file: | ||
parsed_sources = self.extract_urls(raw_file, self.SOURCES_REGEX) | ||
|
Oops, something went wrong.