--- # pylint checks the quality of your code # https://www.pylint.org # Use pyproject.toml to configure pylint. For example: # [tool.pylint.messages_control] # disable = ["C0114", "C0115", "unsubscriptable-object", "too-many-lines"] # This variable tells the kaniko job to add # python testing packages to a separate testing image python:pylint: variables: PYLINT_THRESHOLD: "6" CHECK_PATH: "./${PYTHON_PACKAGE}" EXTRA_ARGS: "" stage: test image: registry.gitlab.com/notno/python-tests before_script: - pip install . script: - pip install pylint pylint-junit - pylint --output-format=pylint_junit.JUnitReporter $(find ${CHECK_PATH} -type f -name '*.py' -print) > ${CI_PROJECT_DIR}/pylint-report.xml || true - pylint ${EXTRA_ARGS} --output-format=colorized --fail-under ${PYLINT_THRESHOLD} $(find ${CHECK_PATH} -type f -name '*.py' -print) artifacts: reports: junit: pylint-report.xml