ScriptCollection 4.4.47__py3-none-any.whl → 4.4.48__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py +16 -2
- {scriptcollection-4.4.47.dist-info → scriptcollection-4.4.48.dist-info}/METADATA +1 -1
- {scriptcollection-4.4.47.dist-info → scriptcollection-4.4.48.dist-info}/RECORD +7 -7
- {scriptcollection-4.4.47.dist-info → scriptcollection-4.4.48.dist-info}/WHEEL +0 -0
- {scriptcollection-4.4.47.dist-info → scriptcollection-4.4.48.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.4.47.dist-info → scriptcollection-4.4.48.dist-info}/top_level.txt +0 -0
|
@@ -245,10 +245,24 @@ class TFCPS_CodeUnit_BuildCodeUnits:
|
|
|
245
245
|
def __do_project_linting_using_codespell(self, repository_folder: str) -> None:
|
|
246
246
|
"""Searches for typos in the repository using codespell. Findings are only reported as warnings and do not let the build fail.
|
|
247
247
|
codespell runs in the repository-folder, so an optional "<repository>/.codespellrc" is used automatically, for example to
|
|
248
|
-
define words which are no typos in the context of the repository (option "ignore-words-list").
|
|
248
|
+
define words which are no typos in the context of the repository (option "ignore-words-list").
|
|
249
|
+
Folders (relative to the repository-root, one per line) which should be ignored can be defined in the optional file "<repository>/.ScriptCollection/CodeSpellIgnore.txt"."""
|
|
249
250
|
try:
|
|
250
251
|
self.sc.log.log("Search for typos using codespell...")
|
|
251
|
-
|
|
252
|
+
arguments: list[str] = []
|
|
253
|
+
ignore_file = os.path.join(repository_folder, ".ScriptCollection", "CodeSpellIgnore.txt")
|
|
254
|
+
if os.path.isfile(ignore_file):
|
|
255
|
+
skip_patterns: list[str] = []
|
|
256
|
+
for line in GeneralUtilities.string_to_lines(GeneralUtilities.read_text_from_file(ignore_file)):
|
|
257
|
+
folder = line.strip().replace("\\", "/").strip("/")
|
|
258
|
+
if folder.startswith("./"):
|
|
259
|
+
folder = folder[2:]
|
|
260
|
+
if folder != "" and not folder.startswith("#"):
|
|
261
|
+
skip_patterns.append(f"./{folder}")
|
|
262
|
+
skip_patterns.append(f"./{folder}/*")
|
|
263
|
+
if 0 < len(skip_patterns):
|
|
264
|
+
arguments.append("--skip=" + ",".join(skip_patterns))
|
|
265
|
+
(exit_code, stdout, stderr, _) = self.sc.run_program_argsasarray("codespell", arguments, repository_folder, throw_exception_if_exitcode_is_not_zero=False)
|
|
252
266
|
codespell_exitcode_for_found_typos: int = 65
|
|
253
267
|
if exit_code not in (0, codespell_exitcode_for_found_typos):
|
|
254
268
|
raise ValueError(f"codespell failed with exit-code {exit_code}: {stderr}")
|
|
@@ -11,7 +11,7 @@ ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3Ro
|
|
|
11
11
|
ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
|
|
12
12
|
ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
|
|
13
13
|
ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
|
|
14
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
14
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=jpq4G12DKlQ4S2aLsy-Ob2RmkwPGNAPMryzWlXU89Co,308791
|
|
15
15
|
ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
|
|
16
16
|
ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
|
|
17
17
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -38,7 +38,7 @@ ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=tub8_1QBu0nWAaGnBWp2nErOW-SO
|
|
|
38
38
|
ScriptCollection/TFCPS/TFCPS_BuildCodeUnitsHook.py,sha256=67_DQwoH5bhxxSmwtuAeoW1NOCMiLMzOy48OqlJX-KY,1744
|
|
39
39
|
ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=yosafTfbB0LBMKomZvLnFJpgJpJOMHsGKLirVjG1slk,40501
|
|
40
40
|
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=Mj9t1SyRpkYZE74cLsGWYv4xB89gXL2ld-RX3xvvGdw,9835
|
|
41
|
-
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=
|
|
41
|
+
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=wdhKr_0oUN-cHxFf1FtbIzqJ5_tQRzh7FLYiAFjRZOQ,57822
|
|
42
42
|
ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=BVK3fpEyjcXYVHIb6YYLH7bWe6iKRaCtPrJ3tXAemYw,6582
|
|
43
43
|
ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=mRBcf7XuNWOSXbZYc3NuJow18AMZ30D6Z-BtyNYfNcM,2072
|
|
44
44
|
ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=Krt5oyGNcRAN3szsgU7LoTh8yVTOdHW-Kq7R9MDDV-Q,7673
|
|
@@ -72,8 +72,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
|
|
|
72
72
|
ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
73
|
ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
|
|
74
74
|
ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
|
-
scriptcollection-4.4.
|
|
76
|
-
scriptcollection-4.4.
|
|
77
|
-
scriptcollection-4.4.
|
|
78
|
-
scriptcollection-4.4.
|
|
79
|
-
scriptcollection-4.4.
|
|
75
|
+
scriptcollection-4.4.48.dist-info/METADATA,sha256=UTri6IXI2G1tMOkn1qHO_hBUC6Brxw2vTKd0crWAbPo,8032
|
|
76
|
+
scriptcollection-4.4.48.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
77
|
+
scriptcollection-4.4.48.dist-info/entry_points.txt,sha256=1nA5gUD0Y9L105JGIfTnnqDZhFjzKcFpFaUSrLn-Sw0,5991
|
|
78
|
+
scriptcollection-4.4.48.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
79
|
+
scriptcollection-4.4.48.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|