ScriptCollection 3.5.158__py3-none-any.whl → 3.5.159__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 +17 -13
- {scriptcollection-3.5.158.dist-info → scriptcollection-3.5.159.dist-info}/METADATA +1 -1
- {scriptcollection-3.5.158.dist-info → scriptcollection-3.5.159.dist-info}/RECORD +6 -6
- {scriptcollection-3.5.158.dist-info → scriptcollection-3.5.159.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.158.dist-info → scriptcollection-3.5.159.dist-info}/entry_points.txt +0 -0
- {scriptcollection-3.5.158.dist-info → scriptcollection-3.5.159.dist-info}/top_level.txt +0 -0
@@ -36,7 +36,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
|
|
36
36
|
from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
|
37
37
|
from .SCLog import SCLog, LogLevel
|
38
38
|
|
39
|
-
version = "3.5.
|
39
|
+
version = "3.5.159"
|
40
40
|
__version__ = version
|
41
41
|
|
42
42
|
|
@@ -2469,7 +2469,7 @@ OCR-content:
|
|
2469
2469
|
def get_lines_of_code_with_default_excluded_patterns(self, repository: str) -> int:
|
2470
2470
|
return self.get_lines_of_code(repository, self.default_excluded_patterns_for_loc, False)
|
2471
2471
|
|
2472
|
-
default_excluded_patterns_for_loc: list[str] = [".txt", ".md",".vscode", "Resources", "Reference", ".gitignore", ".gitattributes", "Other/Metrics"]
|
2472
|
+
default_excluded_patterns_for_loc: list[str] = [".txt", ".md", ".vscode", "Resources", "Reference", ".gitignore", ".gitattributes", "Other/Metrics"]
|
2473
2473
|
|
2474
2474
|
def get_lines_of_code(self, repository: str, excluded_pattern: list[str], verbose: bool) -> int:
|
2475
2475
|
self.assert_is_git_repository(repository)
|
@@ -2482,19 +2482,23 @@ OCR-content:
|
|
2482
2482
|
if very_verbose:
|
2483
2483
|
verbose = True
|
2484
2484
|
for file in files:
|
2485
|
-
if
|
2486
|
-
if
|
2487
|
-
GeneralUtilities.write_message_to_stdout(f"File '{file}' is ignored because it matches an excluded pattern.")
|
2488
|
-
else:
|
2489
|
-
full_file: str = os.path.join(repository, file)
|
2490
|
-
if GeneralUtilities.is_binary_file(full_file):
|
2485
|
+
if os.path.isfile(os.path.join(repository, file)):
|
2486
|
+
if self.__is_excluded_by_glob_pattern(file, excluded_pattern):
|
2491
2487
|
if very_verbose:
|
2492
|
-
GeneralUtilities.write_message_to_stdout(f"File '{file}' is ignored because it
|
2488
|
+
GeneralUtilities.write_message_to_stdout(f"File '{file}' is ignored because it matches an excluded pattern.")
|
2493
2489
|
else:
|
2494
|
-
|
2495
|
-
|
2496
|
-
|
2497
|
-
|
2490
|
+
full_file: str = os.path.join(repository, file)
|
2491
|
+
if GeneralUtilities.is_binary_file(full_file):
|
2492
|
+
if very_verbose:
|
2493
|
+
GeneralUtilities.write_message_to_stdout(f"File '{file}' is ignored because it is a binary-file.")
|
2494
|
+
else:
|
2495
|
+
if verbose:
|
2496
|
+
GeneralUtilities.write_message_to_stdout(f"Count lines of file '{file}'.")
|
2497
|
+
length = len(GeneralUtilities.read_nonempty_lines_from_file(full_file))
|
2498
|
+
result = result+length
|
2499
|
+
else:
|
2500
|
+
if verbose:
|
2501
|
+
GeneralUtilities.write_message_to_stdout(f"File '{file}' is ignored because it does not exist.")
|
2498
2502
|
return result
|
2499
2503
|
|
2500
2504
|
def __is_excluded_by_glob_pattern(self, file: str, excluded_patterns: list[str]) -> bool:
|
@@ -7,11 +7,11 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
|
|
7
7
|
ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
|
8
8
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
9
9
|
ScriptCollection/SCLog.py,sha256=rMdrEzBKQZBdObPJ9nZ5XCEXRoIFqPh8fAoiX6ZOVuw,4493
|
10
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
10
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=Rges2qebK89CwmNwUPKMXVlrYa-OCAJUA1bUSQE9S7E,141662
|
11
11
|
ScriptCollection/TasksForCommonProjectStructure.py,sha256=nXhwH6rfA-XXdQVXYQoxXUQ5sA82d1bDF2EVKdZIfo8,248595
|
12
12
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
scriptcollection-3.5.
|
14
|
-
scriptcollection-3.5.
|
15
|
-
scriptcollection-3.5.
|
16
|
-
scriptcollection-3.5.
|
17
|
-
scriptcollection-3.5.
|
13
|
+
scriptcollection-3.5.159.dist-info/METADATA,sha256=cgDT6oojuA4Pc_eDYFFTMO_k79xHPo39_9VpMi0e5ok,7689
|
14
|
+
scriptcollection-3.5.159.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
scriptcollection-3.5.159.dist-info/entry_points.txt,sha256=EBRDrnGDURysHNyK0Z0fPCnL7uCCO_Mxc6WYJ47KxAI,4234
|
16
|
+
scriptcollection-3.5.159.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
17
|
+
scriptcollection-3.5.159.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|