webyneter/python-humble-utils

View on GitHub

Showing 2 of 2 total issues

Function flatten has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

def flatten(
obj: Any, flatten_dicts_by_values: bool = True, coerce: Optional[Callable[[T], M]] = None
) -> Iterable[M]:
"""Flatten an arbitrarily complex object.
 
 
Severity: Minor
Found in python_humble_utils/objects.py - About 1 hr to fix

Function yield_file_paths has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

def yield_file_paths(
dir_path: Path, allowed_file_extensions: Collection[str], recursively: bool = False
) -> Iterable[Path]:
"""Yield file paths.
 
 
Severity: Minor
Found in python_humble_utils/filesystem.py - About 55 mins to fix
Severity
Category
Status
Source
Language