Commit 7e0ea6d6 authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'master' into 92-feat-find-a-way-to-bump-versions-in-files-in-semantic-release-job

parents de935d0f eaa686d9
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!"
+1 −1
Original line number Diff line number Diff line
@@ -12,5 +12,5 @@ python:isort:
    EXCLUDE: ""  # Files/dirs to ignore. For Django use /migrations/
  script:
    - pip install isort
    - isort --check --profile=black --diff --color ${CHECK_PATH} --skip=${EXCLUDE}
    - isort --check --profile=black --diff --color ${CHECK_PATH} --skip=${EXCLUDE} || echo "[!] Problems found. Run 'isort --profile=black .' in your source directory to fix these."
  needs: []