Skip to content

Commit 8803a38

Browse files
committed
amelioration lanalyzer
1 parent 7b9d008 commit 8803a38

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

Core/ark_config_loader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,3 @@ def create_default_ark_config(workspace_dir: str) -> bool:
320320
except Exception as e:
321321
print(f"Warning: Failed to create ARK_Main_Config.yml: {e}")
322322
return False
323-
324-

Core/deps_analyser/analyser.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,30 @@ def suggest_missing_dependencies(self):
243243
for f in files
244244
if not os.path.commonpath([os.path.abspath(f), venv_dir]) == venv_dir
245245
and not any(
246-
part.startswith(".") or part == "__pycache__" for part in f.split(os.sep)
246+
part.startswith(".")
247+
or part
248+
== (
249+
"**/__pycache__/**",
250+
"**/*.pyc",
251+
"**/*.pyo",
252+
"**/*.pyd",
253+
".git/**",
254+
".svn/**",
255+
".hg/**",
256+
"venv/**",
257+
".venv/**",
258+
"env/**",
259+
".env/**",
260+
"node_modules/**",
261+
"build/**",
262+
"dist/**",
263+
"*.egg-info/**",
264+
".pytest_cache/**",
265+
".mypy_cache/**",
266+
".tox/**",
267+
"site-packages/**",
268+
)
269+
for part in f.split(os.sep)
247270
)
248271
]
249272

0 commit comments

Comments
 (0)