Commit 292c368c authored by Ruben ten Hove's avatar Ruben ten Hove Committed by Federico Falconieri
Browse files

feat: adds flake8 job

parent 63bff225
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!"