Skip to content

Commit

Permalink
Bump cookiecutter template to 5bac2f (#11)
Browse files Browse the repository at this point in the history
# Changes

- bumped cookiecutter template to
robert-koch-institut/mex-template@5bac2f

---------

Co-authored-by: Nicolas Drebenstedt <[email protected]>
  • Loading branch information
RKIMetadataExchange and cutoffthetop authored Jun 13, 2024
1 parent e7fbc31 commit 8aea350
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 23 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": "cbe768db4294a009584c80ab039adca78207b746",
"commit": "5bac2fd56e8da37a4ac070283eaa26c99934c521",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Release

run-name: release version ${{ inputs.version }} by @${{ github.actor }}
run-name: bump ${{ inputs.version }} version by @${{ github.actor }}

on:
workflow_dispatch:
branches: ["main"]
inputs:
version:
type: choice
Expand Down Expand Up @@ -55,8 +54,25 @@ jobs:
- name: Install requirements
run: make setup

- name: Configure git
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PUB: ${{ secrets.SIGNING_PUB }}
run: |
eval "$(ssh-agent -s)"
install --directory ~/.ssh --mode 700
base64 -d <<< '${{ secrets.SIGNING_KEY }}' > ~/.ssh/mex
base64 -d <<< '${{ secrets.SIGNING_PUB }}' > ~/.ssh/mex.pub
chmod 600 ~/.ssh/*
ssh-add ~/.ssh/mex
git config --local user.email ${{ vars.MEX_BOT_EMAIL }}
git config --local user.name ${{ vars.MEX_BOT_USER }}
git config --local gpg.format ssh
git config --local user.signingkey ~/.ssh/mex.pub
git config --local commit.gpgsign true
- name: Release new version
env:
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
run: |
git config --global user.name 'RKIMetadataExchange'
git config --global user.email '[email protected]'
pdm release ${{ inputs.version }}
16 changes: 9 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,27 @@ __pycache__/
*.so

# Distribution / packaging
.eggs/
.installed.cfg
.pdm-build
.pdm-python
.Python
.web/
*.egg
*.egg-info/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
.pdm-python
lib/
lib64/
MANIFEST
parts/
sdist/
share/python-wheels/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
*.manifest
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.4.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -28,7 +28,7 @@ repos:
- id: fix-byte-order-marker
name: byte-order
- repo: https://github.com/pdm-project/pdm
rev: 2.13.2
rev: 2.15.4
hooks:
- id: pdm-lock-check
name: pdm
Expand Down
2 changes: 1 addition & 1 deletion pdm.lock

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

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ optional-dependencies.dev = [
"black>=24.4.2",
"ipdb>=0.13.13",
"mypy>=1.10.0",
"ruff>=0.4.4",
"ruff>=0.4.8",
]

[project.entry-points.pdm]
Expand All @@ -37,10 +37,10 @@ plugins = ["pydantic.mypy"]
distribution = true

[tool.pdm.scripts]
update-all = { cmd = "pdm update --group :all --update-eager --save-minimum" }
lock-all = { cmd = "pdm lock --group :all" }
install-all = { cmd = "pdm install --group :all" }
export-all = { cmd = "pdm export --group :all -f requirements" }
update-all = { cmd = "pdm update --group :all --update-all --save-compatible" }
lock-all = { cmd = "pdm lock --group :all --refresh" }
install-all = { cmd = "pdm install --group :all --no-editable --no-lock" }
export-all = { cmd = "pdm export --group :all --no-hashes -f requirements" }
apidoc = { cmd = "pdm run sphinx-apidoc -f -o docs/source mex" }
sphinx = { cmd = "pdm run sphinx-build -aE -b dirhtml docs docs/dist" }
doc = { composite = ["apidoc", "sphinx"] }
Expand Down Expand Up @@ -120,5 +120,5 @@ select = [
convention = "google"

[build-system]
requires = ["pdm-backend>=2.3.0"]
requires = ["pdm-backend==2.3.0"]
build-backend = "pdm.backend"
1 change: 0 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"enabledManagers": [
"github-actions",
"html",
"npm",
"pep621",
"pip_requirements"
],
Expand Down

0 comments on commit 8aea350

Please sign in to comment.