Skip to content

Commit

Permalink
Bump cookiecutter template to 773777 (#40)
Browse files Browse the repository at this point in the history
# Changes

- bumped cookiecutter template to
robert-koch-institut/mex-template@773777

---------

Co-authored-by: Nicolas Drebenstedt <[email protected]>
  • Loading branch information
RKIMetadataExchange and cutoffthetop authored Apr 2, 2024
1 parent 165de7d commit d84bb8a
Show file tree
Hide file tree
Showing 19 changed files with 701 additions and 299 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/robert-koch-institut/mex-template",
"commit": "061bc1d37c9738740fc572861d2fcc54eed352b3",
"commit": "7737771881fde49031d915e2a18507981c100ee5",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ fail_fast: false
default_language_version:
python: python3.11
repos:
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: pretty-format-json
name: json
args: [--autofix, --no-sort-keys, --indent=4, --no-ensure-ascii]
args: [--autofix, --indent=4, --no-ensure-ascii]
exclude: .cruft.json
- id: check-yaml
name: yaml
Expand All @@ -18,7 +27,7 @@ repos:
- id: fix-byte-order-marker
name: byte-order
- repo: https://github.com/pdm-project/pdm
rev: 2.12.4
rev: 2.13.2
hooks:
- id: pdm-lock-check
name: pdm
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
all: install test
test: linter

LATEST = $(shell git describe --tags $(shell git rev-list --tags --max-count=1))

setup:
# install meta requirements system-wide
@ echo installing requirements; \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Conceptual and machine-readable versions of the MEx metadata model.

[![linting](https://github.com/robert-koch-institut/mex-model/actions/workflows/linting.yml/badge.svg)](https://github.com/robert-koch-institut/mex-model/actions/workflows/linting.yml)
[![cve-scan](https://github.com/robert-koch-institut/mex-model/actions/workflows/cve-scan.yml/badge.svg)](https://github.com/robert-koch-institut/mex-model/actions/workflows/cve-scan.yml)
[![documentation](https://github.com/robert-koch-institut/mex-model/actions/workflows/documentation.yml/badge.svg)](https://robert-koch-institut.github.io/mex-model)

## project

Expand Down
36 changes: 18 additions & 18 deletions mex/model/entities/access-platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
"$schema": "http://json-schema.org/draft/2020-12/schema",
"properties": {
"alternativeTitle": {
"default": [],
"items": {
"$ref": "/schema/fields/text"
},
"sameAs": [
"http://purl.org/dc/terms/alternative"
],
"type": "array",
"default": []
"type": "array"
},
"contact": {
"default": [],
"items": {
"anyOf": [
{
Expand All @@ -29,23 +30,19 @@
"sameAs": [
"http://www.w3.org/ns/dcat#contactPoint"
],
"type": "array",
"default": []
"type": "array"
},
"description": {
"default": [],
"items": {
"$ref": "/schema/fields/text"
},
"sameAs": [
"http://purl.org/dc/terms/description"
],
"type": "array",
"default": []
"type": "array"
},
"endpointDescription": {
"sameAs": [
"http://www.w3.org/ns/dcat#endpointDescription"
],
"anyOf": [
{
"$ref": "/schema/fields/link"
Expand All @@ -54,16 +51,19 @@
"type": "null"
}
],
"default": null
"default": null,
"sameAs": [
"http://www.w3.org/ns/dcat#endpointDescription"
]
},
"endpointType": {
"anyOf": [
{
"$ref": "/schema/entities/concept#/identifier",
"useScheme": "https://mex.rki.de/item/api-type",
"examples": [
"https://mex.rki.de/item/api-type-1"
]
],
"useScheme": "https://mex.rki.de/item/api-type"
},
{
"type": "null"
Expand Down Expand Up @@ -110,14 +110,14 @@
"type": "string"
},
"landingPage": {
"default": [],
"items": {
"$ref": "/schema/fields/link"
},
"sameAs": [
"http://www.w3.org/ns/dcat#landingPage"
],
"type": "array",
"default": []
"type": "array"
},
"stableTargetId": {
"$ref": "/schema/fields/identifier"
Expand All @@ -133,24 +133,24 @@
"useScheme": "https://mex.rki.de/item/technical-accessibility"
},
"title": {
"default": [],
"items": {
"$ref": "/schema/fields/text"
},
"sameAs": [
"http://purl.org/dc/terms/title"
],
"type": "array",
"default": []
"type": "array"
},
"unitInCharge": {
"default": [],
"items": {
"$ref": "/schema/entities/organizational-unit#/identifier"
},
"sameAs": [
"http://dcat-ap.de/def/dcatde/maintainer"
],
"type": "array",
"default": []
"type": "array"
}
},
"required": [
Expand Down
Loading

0 comments on commit d84bb8a

Please sign in to comment.