running local failed with KeyError
Tried to run a report locally as described in https://gitext.gfz-potsdam.de/software/services/fair/ci-services/-/blob/master/doc/doc_usage_local.md
$ docker run -v $(pwd):/repo gitext.gfz-potsdam.de:5000/software/services/fair/ci-services/ci-services:latest --generate-report
Traceback (most recent call last):
File "/services/generate-report/generate-report.py", line 106, in <module>
md.write("**Software Name:** {}\n\n".format(report_dict_ordered['name']))
KeyError: 'name'
.ci-services.yml
# SPDX-FileCopyrightText: 2020 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)
#
# SPDX-License-Identifier: CC0-1.0
list-used-licenses:
# exclude patterns for license check
exclude:
- 'env-docker-compose/.*' # documentation
# matching of imported name to name in pkg manager
rename:
lib:
Python:
yaml: 'PyYAML'
stdlib_list: 'stdlib-list'
# mark local imports to exclude from license check
local_imports:
Python:
- 'functions'
apply-license:
description: 'This Software provides services to check and improve the source code quality of software-projects'
copyright: 'Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam, Germany (https://www.gfz-potsdam.de/)'
time: '2020'
maintainer:
name: 'Maximilian Dolling'
mail: 'mdolling@gfz-potsdam.de'
licenses:
data:
spdx-identifier: 'CC-BY-4.0'
copyright: 'GFZ-Potsdam'
software:
spdx-identifier: 'GPL-3.0-or-later'
copyright: 'GFZ-Potsdam'
pictures:
spdx-identifier: 'CC-BY-4.0'
copyright: 'GFZ-Potsdam'
insignificant:
spdx-identifier: 'CC0-1.0'
copyright: 'GFZ-Potsdam'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information