Skip to content

Commit

Permalink
Bump cookiecutter template to 57e9b7 (#232)
Browse files Browse the repository at this point in the history
# Changes

- bumped cookiecutter template to
robert-koch-institut/mex-template@57e9b7

---------

Co-authored-by: Nicolas Drebenstedt <[email protected]>
  • Loading branch information
RKIMetadataExchange and cutoffthetop authored Jan 15, 2025
1 parent f8c103f commit 3c81b56
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"template": "https://github.com/robert-koch-institut/mex-template",
"commit": "a4f25ab84f9e485ad77eb03663a9cf486f7a5826",
"commit": "57e9b752fed460f5542bda226467210d0135f4fb",
"checkout": null,
"context": {
"cookiecutter": {
"project_name": "backend",
"short_summary": "Backend server for the RKI metadata exchange.",
"long_summary": "The `mex-backend` package is a multi-purpose backend application with an HTTP-API. It provides endpoints to ingest data from ETL-pipelines, for a metadata editor application, and for publishing pipelines to extract standardized data for use in upstream frontend applications.",
"_template": "https://github.com/robert-koch-institut/mex-template"
"_template": "https://github.com/robert-koch-institut/mex-template",
"_commit": "57e9b752fed460f5542bda226467210d0135f4fb"
}
},
"directory": null
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cookiecutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ concurrency:
cancel-in-progress: true

env:
PIP_NO_OPTION: on
PDM_CHECK_UPDATE: False
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_NO_CLEAN: on
PIP_NO_INPUT: on
PIP_PREFER_BINARY: on

jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ on:
workflow_dispatch:

env:
PIP_NO_OPTION: on
PDM_CHECK_UPDATE: False
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_NO_CLEAN: on
PIP_NO_INPUT: on
PIP_PREFER_BINARY: on

permissions:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ on:
workflow_dispatch:

env:
PIP_NO_OPTION: on
PDM_CHECK_UPDATE: False
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_NO_CLEAN: on
PIP_NO_INPUT: on
PIP_PREFER_BINARY: on

concurrency:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ on:
required: true

env:
PIP_NO_OPTION: on
PDM_CHECK_UPDATE: False
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_NO_CLEAN: on
PIP_NO_INPUT: on
PIP_PREFER_BINARY: on

permissions:
Expand Down Expand Up @@ -131,6 +133,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ needs.release.outputs.tag }}

- name: Cache requirements
uses: actions/cache@v4
Expand All @@ -153,7 +156,6 @@ jobs:
- name: Build wheel and sdist distros and create a github release
env:
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
PDM_CHECK_UPDATE: False
run: |
gh release create ${{ needs.release.outputs.tag }} --generate-notes --latest --verify-tag
pdm build --dest dist
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ on:
workflow_dispatch:

env:
PIP_NO_OPTION: on
PDM_CHECK_UPDATE: False
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_NO_CLEAN: on
PIP_NO_INPUT: on
PIP_PREFER_BINARY: on

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.9.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -25,7 +25,7 @@ repos:
- id: fix-byte-order-marker
name: byte-order
- repo: https://github.com/pdm-project/pdm
rev: 2.22.0
rev: 2.22.2
hooks:
- id: pdm-lock-check
name: pdm
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ LABEL org.opencontainers.image.vendor="robert-koch-institut"
ENV PYTHONUNBUFFERED=1
ENV PYTHONOPTIMIZE=1

ENV PIP_PROGRESS_BAR=off
ENV PIP_PREFER_BINARY=on
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
ENV PIP_NO_INPUT: on
ENV PIP_PREFER_BINARY=on
ENV PIP_PROGRESS_BAR=off

ENV MEX_BACKEND_HOST=0.0.0.0

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Robert Koch-Institut
Copyright (c) 2025 Robert Koch-Institut

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
32 changes: 16 additions & 16 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ optional-dependencies.dev = [
"pytest-cov>=6,<7",
"pytest-random-order>=1,<2",
"pytest>=8,<9",
"ruff>=0.8,<1",
"ruff>=0.9,<1",
"sphinx>=8,<9",
"types-pytz>=2024,<2025",
]
Expand Down Expand Up @@ -116,6 +116,12 @@ ignore = [
select = ["ALL"]

[tool.ruff.lint.per-file-ignores]
"mex/backend/logging.py" = [
"A005", # Allow custom logging module to shadow standard-library
]
"mex/backend/types.py" = [
"A005", # Allow custom types module to shadow standard-library
]
"docs/**" = [
"INP001", # Docs folder does not need to be a package
]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ cruft==2.16.0
mex-release==0.3.0
pdm==2.22.1
pre-commit==4.0.1
wheel==0.45.1
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,14 @@ def _match_organization_items(dummy_data: dict[str, AnyExtractedModel]) -> None:
# remove the merged item for org2
connector.commit(
f"""\
MATCH(n) WHERE n.identifier='{dummy_data['organization_2'].stableTargetId}'
MATCH(n) WHERE n.identifier='{dummy_data["organization_2"].stableTargetId}'
DETACH DELETE n;"""
)
# connect the extracted item for org2 with the merged item for org1
connector.commit(
f"""\
MATCH(n :ExtractedOrganization) WHERE n.identifier = '{dummy_data['organization_2'].identifier}'
MATCH(m :MergedOrganization) WHERE m.identifier = '{dummy_data['organization_1'].stableTargetId}'
MATCH(n :ExtractedOrganization) WHERE n.identifier = '{dummy_data["organization_2"].identifier}'
MATCH(m :MergedOrganization) WHERE m.identifier = '{dummy_data["organization_1"].stableTargetId}'
MERGE (n)-[:stableTargetId {{position:0}}]->(m);"""
)
# clear the identity provider cache to refresh the `stableTargetId` property on org2
Expand Down

0 comments on commit 3c81b56

Please sign in to comment.