Commit eaa686d9 authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'hoverht-master-patch-68729' into 'master'

feat: flake8 job

See merge request ci/templates!67
parents 63bff225 292c368c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ include:

  - local: "pipelines/poetry/docker-pro.yml"

  - local: "python/flake8.yml"

  - local: "c/cppcheck.yml"
  - local: "c/flawfinder.yml"

@@ -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:

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!"