health_checks#

Backend logic implementation for conda doctor.

Functions#

display_report_heading(→ None)

Displays our report heading.

check_envs_txt_file(→ bool)

Checks whether the environment is listed in the environments.txt file

find_packages_with_missing_files(→ dict[str, list[str]])

Finds packages listed in conda-meta which have missing files.

find_altered_packages(→ dict[str, list[str]])

Finds altered packages

display_health_checks(→ None)

Prints health report.

missing_files(→ None)

altered_files(→ None)

env_txt_check(→ None)

conda_health_checks()

Attributes#

logger

OK_MARK

X_MARK

logger#
OK_MARK = '✅'#
X_MARK = '❌'#
display_report_heading(prefix: str) None#

Displays our report heading.

check_envs_txt_file(prefix: str | os.PathLike | pathlib.Path) bool#

Checks whether the environment is listed in the environments.txt file

find_packages_with_missing_files(prefix: str | pathlib.Path) dict[str, list[str]]#

Finds packages listed in conda-meta which have missing files.

find_altered_packages(prefix: str | pathlib.Path) dict[str, list[str]]#

Finds altered packages

display_health_checks(prefix: str, verbose: bool = False) None#

Prints health report.

missing_files(prefix: str, verbose: bool) None#
altered_files(prefix: str, verbose: bool) None#
env_txt_check(prefix: str, verbose: bool) None#
conda_health_checks()#