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

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

feat: add pylic job

See merge request ci/templates!70
parents de98fbe7 04722f0e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ include:
  - local: "pipelines/poetry/docker-pro.yml"

  - local: "python/flake8.yml"
  - local: "python/pylic.yml"

  - local: "c/cppcheck.yml"
  - local: "c/flawfinder.yml"
@@ -67,6 +68,10 @@ python:flake8:
  before_script:
    - cd templates_tests/python

python:pylic:
  before_script:
    - cd templates_tests/python

docker:kaniko:python-old:
  extends: docker:kaniko
  variables:

python/pylic.yml

0 → 100644
+11 −0
Original line number Diff line number Diff line
---
# Check the package repo on how to configure this job
# https://github.com/sandrochuber/pylic

python:pylic:
  stage: test
  image: registry.gitlab.com/notno/python-tests
  script:
    - pip install pylic
    - pylic
  needs: []
+20 −0
Original line number Diff line number Diff line
@@ -23,3 +23,23 @@ build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
version_variable = "pyproject.toml:version"

[tool.pylic]
safe_licenses = [
    "Apache Software License",
    "Apache License 2.0",
    "MIT License",
    "MIT",
    "Python Software Foundation License",
    "Mozilla Public License 2.0 (MPL 2.0)",
    "Freely Distributable",
    "GNU Library or Lesser General Public License (LGPL)",
    "BSD License",
    "GNU General Public License v3 (GPLv3)",
    "Public Domain",
    "GNU General Public License v2 (GPLv2)",
    "GNU Lesser General Public License v2 (LGPLv2)",
    "ISC License (ISCL)",
    "OSI Approved"
]
unsafe_packages = []