Beispiel #1
0
def assert_flake8_is_executable (logger):
    """
        Asserts that the flake8 script is executable.
    """

    logger.debug("Checking if flake8 is executable.")
    assert_can_execute(command_and_arguments=("flake8",),
                       prerequisite="flake8",
                       caller="plugin python.flake8")
Beispiel #2
0
def check_pep8_available (logger):
    logger.debug("Checking availability of pep8")
    assert_can_execute(("pep8", ), "pep8", "plugin python.pep8")
Beispiel #3
0
def check_pymetrics_available (logger):
    logger.debug("Checking availability of pymetrics")
    assert_can_execute(("pymetrics", "--nosql", "--nocsv"), "pymetrics", "plugin python.pymetrics")
    logger.debug("pymetrics has been found")
def check_pip_available(logger):
    logger.debug("Chechking if pip is available")
    assert_can_execute("pip", "pip", "plugin python.install_dependencies")
Beispiel #5
0
def check_pychecker_available (logger):
    logger.debug("Checking availability of pychecker")
    assert_can_execute(("pychecker", ), "pychecker", "plugin python.pychecker")
Beispiel #6
0
def check_pylint_availability (logger):
    logger.debug("Checking availability of pychecker")
    assert_can_execute(("pylint", ), "pylint", "plugin python.pylint")
    logger.debug("pylint has been found")