Commit faa2605b authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix: allow for safety args

parent 699708a1
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -5,17 +5,21 @@
include:
  - local: python/generic.yml

variables:
  SAFETY_DEFAULT_ARGS: --full-report --check-unpinned-requirements
  SAFETY_EXTRA_ARGS: ""

python:safety:
  extends:
    - .python:pre
    - .python:pre-install
  variables:
    JOB_PACKAGE: safety
    JOB_PACKAGE: safety==3.*
  script:
    - python3 -m venv .venv
    - source .venv/bin/activate
    - pip3 install -q -U pip setuptools
    - !reference [".python:pre", script]
    - !reference [".python:pre-install", script]
    - safety --version
    - safety check
    - safety --disable-optional-telemetry check ${SAFETY_DEFAULT_ARGS}
      ${SAFETY_EXTRA_ARGS}
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ include:
variables:
  PYTHON_CONTEXT: tests/mockup_projects/python/pep518
  PYINSTALLER_TARGET: tests/mockup_projects/python/pep518/mymodule.spec
  SAFETY_EXTRA_ARGS: --ignore 67599

python:build:setuptools:
  extends: python:build