cycode 2.1.2.dev2__py3-none-any.whl → 2.1.2.dev3__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.
- cycode/__init__.py +1 -1
- cycode/cli/files_collector/walk_ignore.py +2 -1
- cycode/cli/utils/ignore_utils.py +2 -4
- {cycode-2.1.2.dev2.dist-info → cycode-2.1.2.dev3.dist-info}/METADATA +1 -1
- {cycode-2.1.2.dev2.dist-info → cycode-2.1.2.dev3.dist-info}/RECORD +8 -8
- {cycode-2.1.2.dev2.dist-info → cycode-2.1.2.dev3.dist-info}/LICENCE +0 -0
- {cycode-2.1.2.dev2.dist-info → cycode-2.1.2.dev3.dist-info}/WHEEL +0 -0
- {cycode-2.1.2.dev2.dist-info → cycode-2.1.2.dev3.dist-info}/entry_points.txt +0 -0
cycode/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.1.2.
|
|
1
|
+
__version__ = '2.1.2.dev3' # DON'T TOUCH. Placeholder. Will be filled automatically on poetry build from Git Tag
|
|
@@ -24,7 +24,8 @@ def _walk_to_top(path: str) -> Iterable[str]:
|
|
|
24
24
|
|
|
25
25
|
def _collect_top_level_ignore_files(path: str) -> List[str]:
|
|
26
26
|
ignore_files = []
|
|
27
|
-
|
|
27
|
+
top_paths = reversed(list(_walk_to_top(path))) # we must reverse it to make top levels more prioritized
|
|
28
|
+
for dir_path in top_paths:
|
|
28
29
|
for ignore_file in _SUPPORTED_IGNORE_PATTERN_FILES:
|
|
29
30
|
ignore_file_path = os.path.join(dir_path, ignore_file)
|
|
30
31
|
if os.path.exists(ignore_file_path):
|
cycode/cli/utils/ignore_utils.py
CHANGED
|
@@ -396,12 +396,10 @@ class IgnoreFilterManager:
|
|
|
396
396
|
|
|
397
397
|
# decrease recursion depth of os.walk() by ignoring subdirectories because of topdown=True
|
|
398
398
|
# slicing ([:]) is mandatory to change dict in-place!
|
|
399
|
-
dirnames[:] = [
|
|
400
|
-
dirname for dirname in dirnames if not self.is_ignored(os.path.join(rel_dirpath, dirname, ''))
|
|
401
|
-
]
|
|
399
|
+
dirnames[:] = [d for d in dirnames if not self.is_ignored(os.path.join(rel_dirpath, d))]
|
|
402
400
|
|
|
403
401
|
# remove ignored files
|
|
404
|
-
filenames = [
|
|
402
|
+
filenames = [f for f in filenames if not self.is_ignored(os.path.join(rel_dirpath, f))]
|
|
405
403
|
|
|
406
404
|
yield dirpath, dirnames, filenames
|
|
407
405
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cycode/__init__.py,sha256=
|
|
1
|
+
cycode/__init__.py,sha256=AZby8zi4CBbrWKJ5oJMade2FDNeQE2Ir_x_u0B4_20o,114
|
|
2
2
|
cycode/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
cycode/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
cycode/cli/commands/ai_remediation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -75,7 +75,7 @@ cycode/cli/files_collector/sca/ruby/restore_ruby_dependencies.py,sha256=AaQhRmd9
|
|
|
75
75
|
cycode/cli/files_collector/sca/sbt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
76
76
|
cycode/cli/files_collector/sca/sbt/restore_sbt_dependencies.py,sha256=hlRoQWEFbap2UYiVdK6HOeWi0Zn3l2Az2A4yWdnnyI0,923
|
|
77
77
|
cycode/cli/files_collector/sca/sca_code_scanner.py,sha256=E5cIBdjwrL2Exy7U6r9HiZX-ex86QeX7LCkDK2km2Sc,7145
|
|
78
|
-
cycode/cli/files_collector/walk_ignore.py,sha256=
|
|
78
|
+
cycode/cli/files_collector/walk_ignore.py,sha256=y9gI91F2AIborQb03QcwedBIhzi6r4sKuYLBACqaw3k,1459
|
|
79
79
|
cycode/cli/files_collector/zip_documents.py,sha256=64ovgvzG7399bPWIg_g0T3KebSuFpRXZaxBTeNdJ17k,1873
|
|
80
80
|
cycode/cli/main.py,sha256=TWZxfs7nu-zSm1YU4H801T_u16xeV3S-gZcb4gSSD24,387
|
|
81
81
|
cycode/cli/models.py,sha256=yxJJsHO-VBVeomVupD8ho_KyUEX-T0n61b23YF6_AMw,2363
|
|
@@ -101,7 +101,7 @@ cycode/cli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
101
101
|
cycode/cli/utils/enum_utils.py,sha256=ruzi51USQrgKLEiu7HzvT9uxhxX_gzx31Ephuua8kKE,211
|
|
102
102
|
cycode/cli/utils/get_api_client.py,sha256=brYU5dC-9NHAMlez1yQG3NXMHOgwF3MaeSejR6FMpAQ,1584
|
|
103
103
|
cycode/cli/utils/git_proxy.py,sha256=0GI-XitRCycz8oNo0ocZEj2T2eS675y4RUkUVs1QAwM,2917
|
|
104
|
-
cycode/cli/utils/ignore_utils.py,sha256=
|
|
104
|
+
cycode/cli/utils/ignore_utils.py,sha256=zQqRS_SmuFZfTwmRGnYJHd9lIolYoGDgSAiAIZmrgx0,14954
|
|
105
105
|
cycode/cli/utils/jwt_utils.py,sha256=M7UxRHQQ1xsWxg0b1Lo85eQxhnhfgBJB4xpe1Y_JZZs,544
|
|
106
106
|
cycode/cli/utils/path_utils.py,sha256=_pg0jWuYpRfpneP4j2PyuaXZa7s5niF96qC1sm03bRc,3026
|
|
107
107
|
cycode/cli/utils/progress_bar.py,sha256=OMG_JF5xIScDvqeOuHcEr6kPcYR1D8n9hzD64uq_-EI,9884
|
|
@@ -126,8 +126,8 @@ cycode/cyclient/models.py,sha256=iUrTtQrIvls1kgtOadCa8QPzsvh8_kj2eZIX73FIIpk,143
|
|
|
126
126
|
cycode/cyclient/report_client.py,sha256=sNLOm64oaONz-TUBs6fpFfbb7RfxALPS6YBqadMo2-8,3971
|
|
127
127
|
cycode/cyclient/scan_client.py,sha256=BvoMiwgPImvdyp3n6qKwqGtWxjPkeb1JvBd3QphGkz0,14696
|
|
128
128
|
cycode/cyclient/scan_config_base.py,sha256=sM69JOIt6Y0zFT-kp0KXSBjG8ViKl2Y2y6Fh95-57io,1642
|
|
129
|
-
cycode-2.1.2.
|
|
130
|
-
cycode-2.1.2.
|
|
131
|
-
cycode-2.1.2.
|
|
132
|
-
cycode-2.1.2.
|
|
133
|
-
cycode-2.1.2.
|
|
129
|
+
cycode-2.1.2.dev3.dist-info/LICENCE,sha256=2Wx4N6mD_4xB7-E3hPkZ3MPhpJy__k_I8MaCSO-PDRo,1068
|
|
130
|
+
cycode-2.1.2.dev3.dist-info/METADATA,sha256=eSCoaqkTM7ATXCs8D6LVtXTtJlhZiBMbrHdMy2_7P0o,45725
|
|
131
|
+
cycode-2.1.2.dev3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
132
|
+
cycode-2.1.2.dev3.dist-info/entry_points.txt,sha256=GKZlS6LtUdABDPd7-o9bwNSI5gYQnyA3qGrFFQKt3Vc,51
|
|
133
|
+
cycode-2.1.2.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|