import sys
import logging as log


def sanitize_version() -> None:
    """Checks the Python version used to execute TaIGa and exits if it is less than 3.6.x

    Parameters:
    None

    Returns:
    None

    """

    if sys.version_info < (3, 6):
        sys.exit("You are running TaIGa with a Python version older than 3.6x. Please, try again "
                 "with 'python3 TaIGa.py' or 'python3.6 TaIGa.py'")


def config_log(verbose: bool) -> None:
    """Sets the global configuration for the output mode of the 'logging' module

    Parameters:
    verbose (boolean): Sets TaIGa's verbosity mode. If True, TaIGa will not be verbose

    Returns:
    None

    """

    if verbose:
        log.basicConfig(filename="TaIGa_run.log",
                        format="%(message)s", level=log.DEBUG)
    else:
        log.basicConfig(format="%(message)s", level=log.DEBUG)

import sys
import logging as log


def sanitize_version() -> None:
    """Checks the Python version used to execute TaIGa and exits if it is less than 3.6.x

    Parameters:
    None

    Returns:
    None

    """

    if sys.version_info < (3, 6):
        sys.exit("You are running TaIGa with a Python version older than 3.6x. Please, try again "
                 "with 'python3 TaIGa.py' or 'python3.6 TaIGa.py'")


def config_log(verbose: bool) -> None:
    """Sets the global configuration for the output mode of the 'logging' module

    Parameters:
    verbose (boolean): Sets TaIGa's verbosity mode. If True, TaIGa will not be verbose

    Returns:
    None

    """

    if verbose:
        log.basicConfig(filename="TaIGa_run.log",
                        format="%(message)s", level=log.DEBUG)
    else:
        log.basicConfig(format="%(message)s", level=log.DEBUG)

Checks the Python version used to execute TaIGa and exits if it is less than 3.6.x      Parameters:     None      Returns:     None Sets the global configuration for the output mode of the 'logging' module      Parameters:     verbose (boolean): Sets TaIGa's verbosity mode. If True, TaIGa will not be verbose      Returns:     None