mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
fix: suppress codefactor warning
This commit is contained in:
parent
503c8b0355
commit
bc2288afc1
@ -65,7 +65,7 @@ def subpackages(root: Path) -> dict[str, list[Path]]:
|
|||||||
Returns:
|
Returns:
|
||||||
dict[str, list[Path]]: extended list of files which belong to a specific package
|
dict[str, list[Path]]: extended list of files which belong to a specific package
|
||||||
"""
|
"""
|
||||||
for package, paths in SUBPACKAGES.items():
|
for paths in SUBPACKAGES.values():
|
||||||
new_paths = []
|
new_paths = []
|
||||||
for path in paths:
|
for path in paths:
|
||||||
full_path = root / path
|
full_path = root / path
|
||||||
@ -77,7 +77,7 @@ def subpackages(root: Path) -> dict[str, list[Path]]:
|
|||||||
new_path.relative_to(root) for new_path in pycache_path.glob(f"{full_path.stem}.*.pyc")
|
new_path.relative_to(root) for new_path in pycache_path.glob(f"{full_path.stem}.*.pyc")
|
||||||
)
|
)
|
||||||
|
|
||||||
SUBPACKAGES[package].extend(new_paths)
|
paths.extend(new_paths)
|
||||||
|
|
||||||
return SUBPACKAGES
|
return SUBPACKAGES
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user