Loading .gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,8 @@ include: - local: "pipelines/poetry/docker-pro.yml" - local: "python/flake8.yml" - local: "c/cppcheck.yml" - local: "c/flawfinder.yml" Loading Loading @@ -61,6 +63,10 @@ python:poetry:publish: before_script: - cd templates_tests/python python:flake8: before_script: - cd templates_tests/python docker:kaniko:python-old: extends: docker:kaniko variables: Loading python/flake8.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line --- python:flake8: variables: CHECK_PATH: "./${PYTHON_PACKAGE}" DEFAULT_ARGS: "--max-line-length=88 --extend-ignore=E203 --max-complexity=10 --extend-exclude=tests/ --show-source --statistics" EXTRA_ARGS: "" stage: test image: registry.gitlab.com/notno/python-tests before_script: - pip install . script: - pip install flake8 - flake8 ${DEFAULT_ARGS} ${EXTRA_ARGS} ${CHECK_PATH} && echo "[+] No problems found. Well done!" Loading
.gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,8 @@ include: - local: "pipelines/poetry/docker-pro.yml" - local: "python/flake8.yml" - local: "c/cppcheck.yml" - local: "c/flawfinder.yml" Loading Loading @@ -61,6 +63,10 @@ python:poetry:publish: before_script: - cd templates_tests/python python:flake8: before_script: - cd templates_tests/python docker:kaniko:python-old: extends: docker:kaniko variables: Loading
python/flake8.yml 0 → 100644 +13 −0 Original line number Diff line number Diff line --- python:flake8: variables: CHECK_PATH: "./${PYTHON_PACKAGE}" DEFAULT_ARGS: "--max-line-length=88 --extend-ignore=E203 --max-complexity=10 --extend-exclude=tests/ --show-source --statistics" EXTRA_ARGS: "" stage: test image: registry.gitlab.com/notno/python-tests before_script: - pip install . script: - pip install flake8 - flake8 ${DEFAULT_ARGS} ${EXTRA_ARGS} ${CHECK_PATH} && echo "[+] No problems found. Well done!"