Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 302f791

Browse files
committedMay 11, 2024·
docs: fix typos with codespell
1 parent 97f03d8 commit 302f791

32 files changed

+102
-74
lines changed
 

‎ChangeLog.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
## 2.0.0.dev (2023-05-19)
6969

7070
* breaking changes
71-
* new command `bom convert` to import and export SBOM in mutiple formats.
71+
* new command `bom convert` to import and export SBOM in multiple formats.
7272
This new command replaces `bom fromCSV`, `bom FromFlatFist`, `bom FromSbom`,
7373
`bom ToHtml` and `bom ToSbom`.
7474
* `bom sort` is discontinued, CycloneDX SBOMs are always sorted by component name.
@@ -209,7 +209,7 @@ endpoint to get all releases with one call it now takes only 1.3 minutes.
209209
## 1.5.0 (2021-12-20)
210210

211211
* New parameter `-package-source` to specify a custom package manager.
212-
The parameter is very helpfull if your are in an environment where you cannot access
212+
The parameter is very helpful if your are in an environment where you cannot access
213213
the internet, for example when running CI/CD on code.siemens.com.
214214
Package metadata can get retrieved for example from BT-Artifactory:
215215
* NPM: https://devops.bt.siemens.com/artifactory/api/npm/npm-all/
@@ -223,7 +223,7 @@ endpoint to get all releases with one call it now takes only 1.3 minutes.
223223
* `getdependencies javascript` has an improved method to determine source files.
224224
* `getdependencies MavenList` has improved parsing of Maven output.
225225
* `project create` can now use all data in projectinfo.json that conforms with the REST API
226-
specification. It is now for example also possible to add attachemnt during project creation.
226+
specification. It is now for example also possible to add attachment during project creation.
227227
* New option ```-cx``` to support the CycloneDX SBOM format for the commands
228228
* `bom diff`
229229
* Unit tests for `bom diff` added.
@@ -267,7 +267,7 @@ endpoint to get all releases with one call it now takes only 1.3 minutes.
267267

268268
## 1.3 (2021-11-15)
269269

270-
* `bom create` with `--dbx` option will re-use existing SW360 releases with
270+
* `bom create` with `--dbx` option will reuse existing SW360 releases with
271271
"similar" Debian versions. It will ignore epoch prefix ("2:") and ".debian"
272272
suffix, so BOM entry "2:5.2.1-1.debian" will match SW360 release "5.2.1-1".
273273
* `bom create` only downloads missing sources if ```--download``` is specified
@@ -351,7 +351,7 @@ endpoint to get all releases with one call it now takes only 1.3 minutes.
351351
* all errors result in exit code = 1.
352352
* new option `-source` for command `bom createcomponents` to specify
353353
a folder where to find/store source code files.
354-
* `bom createcomponents`: source code files will onl get downloaded if they
354+
* `bom createcomponents`: source code files will only get downloaded if they
355355
do not yet exist locally.
356356
* fix: correct handling of components without releases.
357357

‎Contributing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
# SPDX-FileCopyrightText: (c) 2018-2023 Siemens
2+
# SPDX-FileCopyrightText: (c) 2018-2024 Siemens
33
# SPDX-License-Identifier: MIT
44
-->
55

@@ -92,7 +92,7 @@ can then be uploaded or installed locally using ```pip```.
9292

9393
To display console output for ordinary usage of a command line script or program
9494
use `print()` or our own variants `print_red()` for errors, `print_yellow()` for
95-
warnings and `print_green()` for (highlighted) positive mesages.
95+
warnings and `print_green()` for (highlighted) positive messages.
9696

9797
Events that occur during normal operation of a program (e.g. for status monitoring
9898
or fault investigation) can use `logging.info()`. Problems in nested classes shall

‎Dependency Detection.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
# Dependency Detection
77

8-
This is a collection of information about determing the dependencies of a projects,
9-
or determing the SBOM, the bill of material for a project.
8+
This is a collection of information about determining the dependencies of a projects,
9+
or determining the SBOM, the bill of material for a project.
1010

1111
## Nuget/C#/.Net
1212

@@ -30,7 +30,7 @@ Examples:
3030
* License (`license` or `licenseUrl` (deprecated), optional)
3131
* Copyright (`copyright`, optional)
3232
* Release Notes (`releaseNotes`, optional)
33-
* Titel = user friendly name of the package (`title`, optional)
33+
* Title = user friendly name of the package (`title`, optional)
3434
* Dependencies (optional)
3535

3636
There is no reliable information about the source code. A heuristic would be to look
@@ -46,7 +46,7 @@ There is no support to download the source code.
4646

4747
### CycloneDX
4848

49-
CycloneDX (https://github.com/CycloneDX/cyclonedx-dotnet) searches recursivly all Visual Studio
49+
CycloneDX (https://github.com/CycloneDX/cyclonedx-dotnet) searches recursively all Visual Studio
5050
solution or project files for package references. The meta data of the packages is retrieved from
5151
the nuspec file on the NuGet packages. The NuGet packages are found in the global NuGet cache
5252
folder.
@@ -59,7 +59,7 @@ a list of packages that should get ignored.
5959

6060
(some magic)
6161

62-
CC Automation uses the NuGet API to retrive meta data about the packages.
62+
CC Automation uses the NuGet API to retrieve meta data about the packages.
6363
This meta information also can contain repository meta data like the
6464
repository URL and the commit id. Only if this information is available,
6565
the source code URL can then be created like this:
@@ -190,7 +190,7 @@ If the URL exists, then the following properties may get extracted:
190190

191191
## Other Languages / Software Eco Systems
192192

193-
People are wokring on support for Debian packages and Ruby, but it may still take some time...
193+
People are working on support for Debian packages and Ruby, but it may still take some time...
194194

195195
---
196196

@@ -211,7 +211,7 @@ If the URL exists, then we are fine; otherwise a human have to look up the sourc
211211

212212
## FAQ
213213

214-
* **Q:** Why does CaPyCLI provided ony limited support for dependency detection?
214+
* **Q:** Why does CaPyCLI provided only limited support for dependency detection?
215215
**A:** At beginning most people where happy with a very simple automation that
216216
just created components and releases on SW360. All other meta has been entered manually.
217217
At the end all is inner source - if you need something, fell free to implement it ;-)

‎Readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Commands and Sub-Commands
8787
8888
project
8989
Find find a project by name
90-
Prerequisites checks whether all prerequisites for a successfull
90+
Prerequisites checks whether all prerequisites for a successful
9191
software clearing are fulfilled
9292
Show show project details
9393
Licenses show licenses of all cleared compponents
@@ -232,7 +232,7 @@ on SW360. It is a simple JSON format. CaPyCli reads or writes exactly the
232232
information that is needed.
233233
Conversion support from or to our SBOM format is available.
234234
For converting CycloneDX (XML) to JSON or for converting SPDX SBOMs, we like
235-
to refer you to the oepn source tools from [CycloneDX](https://cyclonedx.org/).
235+
to refer you to the open source tools from [CycloneDX](https://cyclonedx.org/).
236236

237237
## Mapping a SBOM to SW360
238238

‎Readme_Mapping.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
# SPDX-FileCopyrightText: (c) 2018-2023 Siemens
2+
# SPDX-FileCopyrightText: (c) 2018-2024 Siemens
33
# SPDX-License-Identifier: MIT
44
-->
55

@@ -17,9 +17,9 @@ The current approach is checking the following properties in this order:
1717
5. check for name and **any** version
1818
6. look for similar names
1919

20-
CaPyCLI creates as result of the SOM mapping an extended SBOM file. This SBOM file
20+
CaPyCLI creates as result of the SBOM mapping an extended SBOM file. This SBOM file
2121
contains the original entries and **all** matching entries. The `Result` value
22-
informs about the mappping result:
22+
informs about the mapping result:
2323

2424
* **`INVALID` (0)** => Invalid SBOM entry, could not get processed
2525
* **`FULL_MATCH_BY_ID` (1)** => Full match by identifier
@@ -246,7 +246,7 @@ that have been found on SW360.
246246
* sw360id = 95a05a6fff469a1aebe03c0233002fb0
247247

248248
=> The output SBOM of `bom map` contains exactly **six** entries.
249-
These are the component that could not get matched and potential candiates.
249+
These are the component that could not get matched and potential candidates.
250250
**Manual intervention is needed: the user needs to decide whether to use one of the existing
251251
releases of Tethys.Logging or to force CaPyCLI to create release 1.4.3 which does not
252252
yet exist.**

‎Readme_Workflow.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
# SPDX-FileCopyrightText: (c) 2018-2023 Siemens
2+
# SPDX-FileCopyrightText: (c) 2018-2024 Siemens
33
# SPDX-License-Identifier: MIT
44
-->
55

@@ -10,7 +10,7 @@ to use for which purpose and what is the right order of commands.
1010

1111
## General Idea
1212

13-
The general idea of the clearing support worflow looks like this:
13+
The general idea of the clearing support workflow looks like this:
1414

1515
![workflow](images/workflow.svg)
1616

@@ -64,7 +64,7 @@ the SBOM find too many components, for example when they also list development d
6464
test frameworks, components for mocking, etc.
6565
The command `CaPyCLI bom granularity` may help you to find out where a tool provides too many details
6666
in a SBOM. As OSS software license compliance focuses on the source code, we should list component on
67-
thei granularity level.
67+
the granularity level.
6868

6969
![step_granularity](images/step_granularity.svg)
7070

‎RunChecks.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# SPDX-License-Identifier: MIT
66
# ------------------------------------------------
77

8+
# 2024-05-11, T. Graf
9+
810
Write-Host "flake8 ..."
911
poetry run flake8
1012

@@ -18,6 +20,9 @@ poetry run isort .
1820
Write-Host "mypy ..."
1921
poetry run mypy .
2022

23+
Write-Host "codespell ..."
24+
poetry run codespell .
25+
2126
Write-Host "Done."
2227

2328
# -----------------------------------

‎SoftwareClearingApproachOverview.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
# SPDX-FileCopyrightText: (c) 2018-2023 Siemens
2+
# SPDX-FileCopyrightText: (c) 2018-2024 Siemens
33
# SPDX-License-Identifier: MIT
44
-->
55

@@ -178,7 +178,7 @@ to a licensing infringement!**
178178

179179
Example: checker-qual-2.8.1
180180

181-
This is an example to show why source code from maven is not really useable for Siemens license scanning.
181+
This is an example to show why source code from maven is not really usable for Siemens license scanning.
182182

183183
* The source file checker-qual-2.8.1-sources.jar is from maven
184184
(https://mvnrepository.com/artifact/org.checkerframework/checker-qual/2.8.1).

‎capycli/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-23 Siemens
2+
# Copyright (c) 2019-24 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -105,7 +105,7 @@ def emit(self, record: logging.LogRecord) -> None:
105105

106106
class ColorFormatter(logging.Formatter):
107107
"""
108-
A logging formatter for color cosole output.
108+
A logging formatter for color console output.
109109
Critical messages and errors are displayed in red.
110110
Warnings are displayed in yellow.
111111
Infos are displayed in white.

‎capycli/bom/check_bom_item_status.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def show_bom_item_status(self, bom: Bom, all: bool = False) -> None:
147147
if not rel:
148148
print_red("Error accessing release " + href)
149149
continue
150-
cs = rel.get("clearingState", "(unkown clearing state)")
150+
cs = rel.get("clearingState", "(unknown clearing state)")
151151
if cs == "APPROVED":
152152
print(Fore.LIGHTGREEN_EX, end="", flush=True)
153153
print(

‎capycli/bom/check_granularity.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2021-2023 Siemens
2+
# Copyright (c) 2021-2024 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -51,7 +51,7 @@ def __init__(self) -> None:
5151
@staticmethod
5252
def get_granularity_list(download_url: str) -> None:
5353
'''This will only download granularity file from a public repository.
54-
Make sure to give the raw version of the granularity file seperated by ;'''
54+
Make sure to give the raw version of the granularity file separated by ;'''
5555
response = requests.get(download_url)
5656
response.raise_for_status()
5757
with open('granularity_list.csv', 'wb') as f1:
@@ -229,7 +229,7 @@ def run(self, args: Any) -> None:
229229
print("optional arguments:")
230230
print(" -h, --help show this help message and exit")
231231
print(" -i INPUTFILE SBOM file to read from (JSON)")
232-
print(" -o OUTPUTFILE write updated to this file (optinal)")
232+
print(" -o OUTPUTFILE write updated to this file (optional)")
233233
print(" -v be verbose")
234234
print(" -rg read the granularity list file from the URL specified")
235235
print(" -lg read the granularity list file from local")

‎capycli/bom/create_components.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def upload_file(
366366
filename = str(CycloneDxSupport.get_ext_ref_binary_file(cx_comp))
367367
filehash = str(CycloneDxSupport.get_binary_file_hash(cx_comp))
368368

369-
# Note that we retreive the SHA1 has from the CycloneDX data.
369+
# Note that we retrieve the SHA1 has from the CycloneDX data.
370370
# But there is no guarantee that this *IS* really a SHA1 hash!
371371

372372
if (filename is None or filename == "") and url:
@@ -638,7 +638,7 @@ def create_items(self, sbom: Bom) -> None:
638638
CycloneDxSupport.remove_property(cx_comp, CycloneDxSupport.CDX_PROP_MAPRESULT)
639639

640640
if not ok:
641-
print_red("An error occured during component/release creation!")
641+
print_red("An error occurred during component/release creation!")
642642
sys.exit(ResultCode.RESULT_ERROR_CREATING_ITEM)
643643

644644
def run(self, args: Any) -> None:

‎capycli/bom/diff_bom.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2021-2023 Siemens
2+
# Copyright (c) 2021-2024 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com, manuel.schaffer@siemens.com
55
#
@@ -37,7 +37,7 @@ class DiffType(str, Enum):
3737
# New component.
3838
NEW = "NEW"
3939

40-
# Obolete component.
40+
# Obsolete component.
4141
OBSOLETE = "OBSOLETE"
4242

4343
# A minor update, i.e. x.y.z => x.y.z+1 or x.y.z => x.y+1.zz

‎capycli/bom/findsources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def github_request(url: str, username: str = "", token: str = "") -> Any:
9494
except Exception as ex:
9595
print(
9696
Fore.LIGHTYELLOW_EX +
97-
" Error acccessing GitHub: " + repr(ex) +
97+
" Error accessing GitHub: " + repr(ex) +
9898
Style.RESET_ALL)
9999

100100
return {}

‎capycli/bom/map_bom.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-23 Siemens
2+
# Copyright (c) 2019-24 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -84,7 +84,7 @@ def filter_exceptions(self, partsBomItem: List[str]) -> List[str]:
8484
return partsBomItem
8585

8686
def similar_name_match(self, component: Component, release: Dict[str, Any]) -> bool:
87-
"""Determine whether there is a relase with a similar name. Similar means
87+
"""Determine whether there is a release with a similar name. Similar means
8888
a combination of name words..."""
8989
SIMILARITY_THRESHOLD = 2
9090
separators = {"-", "@", "_"}
@@ -893,7 +893,7 @@ def setup_cache(self, args: Any) -> None:
893893
capycli.common.file_support.create_backup(ComponentCacheManagement.CACHE_ALL_RELEASES)
894894

895895
if args.refresh_cache:
896-
print_text(" Running forced component cache refesh...")
896+
print_text(" Running forced component cache refresh...")
897897
self.releases = self.refresh_component_cache(
898898
cachefile, True, args.sw360_token, oauth2=args.oauth2, sw360_url=args.sw360_url)
899899

‎capycli/common/comparable_version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2022-2023 Siemens
2+
# Copyright (c) 2022-2024 Siemens
33
# All Rights Reserved.
44
# Author: rayk.bajohr@siemens.com
55
#
@@ -137,7 +137,7 @@ def __ne__(self, other: ComparableVersion | object) -> bool:
137137
return self.version.__ne__(other.version)
138138

139139
def __le__(self, other: ComparableVersion) -> bool:
140-
"""descries less than or equal to (<=)"""
140+
"""describes less than or equal to (<=)"""
141141
try:
142142
return self.compare(other) <= 0
143143
except IncompatibleVersionError:

‎capycli/common/script_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def analyze_token(self, token: str) -> None:
9797
print_yellow(" Unable to analyze token:" + repr(ex))
9898

9999
def get_error_message(self, swex: SW360Error) -> str:
100-
"""Display a usefull error message for a SW360Error exception"""
100+
"""Display a useful error message for a SW360Error exception"""
101101
if swex.response is None:
102102
return repr(swex)
103103
elif swex.response.status_code == requests.codes["forbidden"]:

‎capycli/dependencies/maven_list.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2020-2023 Siemens
2+
# Copyright (c) 2020-2024 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com, manuel.schaffer@siemens.com
55
#
@@ -223,7 +223,7 @@ def create_full_dependency_list_from_maven_list_file(self, maven_list_file: str,
223223
mvn dependency:list
224224
225225
:return a list of the local Python packages
226-
:rtype list of package item dictionaries, as retuned by pip
226+
:rtype list of package item dictionaries, as returned by pip
227227
"""
228228
if raw_file:
229229
parsed_sources = self.extract_urls(raw_file, self.SOURCES_REGEX)

‎capycli/dependencies/python.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-23 Siemens
2+
# Copyright (c) 2019-24 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -54,7 +54,7 @@ def requirements_to_package_list(self, input_file: str) -> List[Dict[str, str]]:
5454
:param input_file: the requirements file.
5555
:type input_file: string
5656
:return a list of the local Python packages
57-
:rtype list of package item dictionaries, as retuned by pip
57+
:rtype list of package item dictionaries, as returned by pip
5858
"""
5959
rawdata = open(input_file, 'rb').read()
6060
result = chardet.detect(rawdata)
@@ -69,7 +69,7 @@ def read_requirements_bom(self, requirements_file: TextIOWrapper) -> List[Dict[s
6969
:param requirements_file: the requirements file.
7070
:type requirements_file: string.
7171
:return a list of the local Python packages.
72-
:rtype list of package item dictionaries, as retuned by pip.
72+
:rtype list of package item dictionaries, as returned by pip.
7373
"""
7474
package_list: List[Dict[str, str]] = []
7575
for req in requirements.parse(requirements_file):
@@ -236,7 +236,7 @@ def convert_package_list(self, package_list: List[Dict[str, Any]], search_meta_d
236236
Convert package list to SBOM.
237237
238238
:param package_list: list of packages to convert
239-
:type package_list: list of package item dictionaries, as retuned by pip.
239+
:type package_list: list of package item dictionaries, as returned by pip.
240240
:return the bill or material
241241
:rtype list of bom item dictionaries
242242
"""
@@ -268,7 +268,7 @@ def print_package_list(self, package_list: List[Dict[str, Any]]) -> None:
268268
Print the package list.
269269
270270
:param package_list: list of packages to convert
271-
:type package_list: list of package item dictionaries, as retuned by pip.
271+
:type package_list: list of package item dictionaries, as returned by pip.
272272
"""
273273

274274
print_text("\nPackages:")

‎capycli/main/application.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-2023 Siemens
2+
# Copyright (c) 2019-2024 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -93,7 +93,7 @@ def initialize(self, argv: Any) -> None:
9393

9494
def emit_exit_code(self, system_exit_exception: Optional[SystemExit]) -> None:
9595
if system_exit_exception is None:
96-
# successfull
96+
# successful
9797
if self.options and self.options.ex: # type: ignore # code is used!
9898
print("Exit code = 0") # type: ignore # code is used!
9999
# no need to do sys.exit(0) here - 0 is the default exit code

‎capycli/main/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self) -> None:
6060
6161
project
6262
Find find a project by name
63-
Prerequisites checks whether all prerequisites for a successfull
63+
Prerequisites checks whether all prerequisites for a successful
6464
software clearing are fulfilled
6565
Show show project details
6666
Licenses show licenses of all cleared compponents

‎capycli/mapping/mapping_to_xlsx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-23 Siemens
2+
# Copyright (c) 2019-24 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -153,7 +153,7 @@ def mapping_result_to_xlsx(self, details: List[Dict[str, Any]], outputfile: str)
153153
try:
154154
wb.save(outputfile)
155155
except Exception as ex:
156-
print_red("Error wirting Excel sheet: " + repr(ex))
156+
print_red("Error writing Excel sheet: " + repr(ex))
157157
sys.exit(ResultCode.RESULT_ERROR_WRITING_FILE)
158158

159159
def run(self, args: Any) -> None:

‎capycli/project/check_prerequisites.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
class CheckPrerequisites(capycli.common.script_base.ScriptBase):
27-
"""Checks whether all prerequisites for a successfull software clearing are fulfilled."""
27+
"""Checks whether all prerequisites for a successful software clearing are fulfilled."""
2828

2929
def get_clearing_state(self, project: Dict[str, Any], href: str) -> str:
3030
"""Returns the clearing state of the given component/release"""
@@ -271,13 +271,13 @@ def run(self, args: Any) -> None:
271271

272272
print_text(
273273
"\n" + capycli.APP_NAME + ", " + capycli.get_app_version() +
274-
" - Checks whether all prerequisites for a successfull software " +
274+
" - Checks whether all prerequisites for a successful software " +
275275
"clearing are fulfilled\n")
276276

277277
if args.help:
278278
print("Usage: CaPyCli project prerequisites [-i INPUTFILE] -id ID [-name NAME] [-v VERSION] [-url URL]")
279279
print("")
280-
print("Checks whether all prerequisites for a successfull software clearing are fulfilled")
280+
print("Checks whether all prerequisites for a successful software clearing are fulfilled")
281281
print("")
282282
print("Options:")
283283
print(" -h, --help show this help message and exit")

‎capycli/project/create_project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def run(self, args: Any) -> None:
287287
print_red("Neither project name nor id specified!")
288288
sys.exit(ResultCode.RESULT_COMMAND_ERROR)
289289
if not args.version:
290-
print_red("Neiter project version nor id specified!")
290+
print_red("Neither project version nor id specified!")
291291
sys.exit(ResultCode.RESULT_COMMAND_ERROR)
292292
if not args.source:
293293
print_red("No project information file specified!")

‎capycli/project/handle_project.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2019-23 Siemens
2+
# Copyright (c) 2019-24 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -35,7 +35,7 @@ def run_project_command(args: Any) -> None:
3535
# display `project` related help
3636
print("project - project related sub-commands")
3737
print(" Find find a project by name")
38-
print(" Prerequisites checks whether all prerequisites for a successfull")
38+
print(" Prerequisites checks whether all prerequisites for a successful")
3939
print(" software clearing are fulfilled")
4040
print(" Show show project details")
4141
print(" Licenses show licenses of all cleared compponents")
@@ -62,7 +62,7 @@ def run_project_command(args: Any) -> None:
6262
return
6363

6464
if subcommand == "prerequisites":
65-
"""Checks whether all prerequisites for a successfull software clearing are fulfilled."""
65+
"""Checks whether all prerequisites for a successful software clearing are fulfilled."""
6666
app3 = capycli.project.check_prerequisites.CheckPrerequisites()
6767
app3.run(args)
6868
return

‎capycli/project/show_licenses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def process_release(self, release: Dict[str, Any], tempfolder: str) -> None:
110110
clifile.read_from_file(cli_filename)
111111
except OSError as ex:
112112
print_red(" Error reading CLI file: " + cli_filename)
113-
print_red(" Error '{0}' occured. Arguments {1}.".format(ex.errno, ex.args))
113+
print_red(" Error '{0}' occurred. Arguments {1}.".format(ex.errno, ex.args))
114114

115115
license_list = []
116116
for lic in clifile.licenses:

‎examples.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
# SPDX-FileCopyrightText: (c) 2018-2023 Siemens
2+
# SPDX-FileCopyrightText: (c) 2018-2024 Siemens
33
# SPDX-License-Identifier: MIT
44
-->
55

@@ -517,7 +517,7 @@ CaPyCli - Show project details
517517
RabbitMQ, 3.8.2 = OPEN
518518
```
519519

520-
#### Checks whether all prerequisites for a successfull software clearing are fulfilled
520+
#### Checks whether all prerequisites for a successful software clearing are fulfilled
521521

522522
This will perform a number of sanity checks for the linked releases in a
523523
project.
@@ -537,7 +537,7 @@ capycli project prerequisites -name "tr-card" -version "1.0"
537537
Result:
538538

539539
```sh
540-
CaPyCli - Checks whether all prerequisites for a successfull software clearing are fulfilled
540+
CaPyCli - Checks whether all prerequisites for a successful software clearing are fulfilled
541541
Searching for projects
542542
Project name: TR-Card, 1.0
543543
Clearing state: CLOSED
@@ -695,7 +695,7 @@ Creating items...
695695
JSONStream, 1.3.5
696696
Component JSONStream exists.
697697
Release has been created, id = 797a6d197e97091e22700c34e4032831
698-
An error occured during component/release creation!
698+
An error occurred during component/release creation!
699699
Exit code = 1
700700
```
701701

‎poetry.lock

+19-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ types-openpyxl = "^3.1.0.32"
6969
types-python-dateutil = "^2.8.19.14"
7070
types-requests = "2.31.0.6" # this is the last version that uses urllib3 < 2
7171
types-beautifulsoup4 = "^4.12.0.20240106"
72+
codespell = "^2.2.6"
7273

7374
[build-system]
7475
requires = ["poetry>=0.12"]
@@ -105,3 +106,7 @@ no_implicit_optional = true
105106
warn_redundant_casts = true
106107
warn_unused_ignores = true
107108
no_implicit_reexport = true
109+
110+
[tool.codespell]
111+
skip = "./htmlcov/*,./_internal_tests_/*,./__internal__/*,./tests/fixtures/*,*.svg,./capycli/data/granularity_list.csv"
112+
ignore-words-list = "manuel"

‎tests/test_bom_create_releases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def test_update_component_other_purl(self) -> None:
462462

463463
@responses.activate
464464
def test_create_release_SourceUrl(self) -> None:
465-
"""Create relase from BOM SourceFileUrl, no download
465+
"""Create release from BOM SourceFileUrl, no download
466466
"""
467467
responses.add(
468468
responses.POST,

‎tests/test_bom_map2.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_mapping_single_match_by_id(self) -> None:
503503
"type": "component",
504504
"name": "colorama",
505505
"componentType": "OSS",
506-
"visbility": "EVERYONE",
506+
"visibility": "EVERYONE",
507507
"externalIds": {
508508
"package-url": "pkg:pypi/colorama"
509509
},
@@ -721,7 +721,7 @@ def test_mapping_use_cache(self) -> None:
721721
"type": "component",
722722
"name": "colorama",
723723
"componentType": "OSS",
724-
"visbility": "EVERYONE",
724+
"visibility": "EVERYONE",
725725
"externalIds": {
726726
"package-url": "pkg:pypi/colorama"
727727
},
@@ -1071,7 +1071,7 @@ def add_component_per_name_colorama_response(self) -> None:
10711071
"type": "component",
10721072
"name": "colorama",
10731073
"componentType": "OSS",
1074-
"visbility": "EVERYONE",
1074+
"visibility": "EVERYONE",
10751075
"externalIds": {
10761076
"package-url": "pkg:pypi/colorama"
10771077
},
@@ -1101,7 +1101,7 @@ def add_component_colorama_response(self) -> None:
11011101
{
11021102
"name": "colorama",
11031103
"componentType": "OSS",
1104-
"visbility": "EVERYONE",
1104+
"visibility": "EVERYONE",
11051105
"externalIds": {
11061106
"package-url": "pkg:pypi/colorama"
11071107
},

‎tests/test_create_project.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -------------------------------------------------------------------------------
2-
# Copyright (c) 2023 Siemens
2+
# Copyright (c) 2023-2024 Siemens
33
# All Rights Reserved.
44
# Author: thomas.graf@siemens.com
55
#
@@ -697,7 +697,7 @@ def xtest_project_update_old_version(self) -> None:
697697
out = self.capture_stdout(sut.run, args)
698698
self.assertTrue(self.INPUTFILE in out)
699699

700-
# test invalid entry in project_config ("inner source" instaed of INNER_SOURCE)
700+
# test invalid entry in project_config ("inner source" instead of INNER_SOURCE)
701701

702702
# test unknown/invalid release id
703703

0 commit comments

Comments
 (0)
Please sign in to comment.