diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5071dc3..0d9818c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -117,6 +117,8 @@ repos: language: system always_run: true pass_filenames: false + stages: + - commit - id: codemeta-json-updated name: Update codemeta.json entry: > diff --git a/DESCRIPTION b/DESCRIPTION index 1a4463b..92134eb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: drugfindR Title: Investigate iLINCS for candidate repurposable drugs -Version: 0.99.979 +Version: 0.99.980 Authors@R: c( person(given = c("Ali", "Sajid"), family = "Imami", diff --git a/codemeta.json b/codemeta.json index 0c97a05..399a8d1 100644 --- a/codemeta.json +++ b/codemeta.json @@ -7,7 +7,7 @@ "codeRepository": "https://github.com/CogDisResLab/drugfindR", "issueTracker": "https://github.com/CogDisResLab/drugfindR/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.99.979", + "version": "0.99.980", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", @@ -17,30 +17,21 @@ "author": [ { "@type": "Person", - "givenName": [ - "Ali", - "Sajid" - ], + "givenName": ["Ali", "Sajid"], "familyName": "Imami", "email": "Ali.Sajid.Imami@gmail.com", "@id": "https://orcid.org/0000-0003-3684-3539" }, { "@type": "Person", - "givenName": [ - "Justin", - "Fortune" - ], + "givenName": ["Justin", "Fortune"], "familyName": "Creeden", "email": "Justin.Creeden@rockets.utoledo.edu", "@id": "https://orcid.org/0000-0003-3123-8401" }, { "@type": "Person", - "givenName": [ - "Evelyn", - "Alden" - ], + "givenName": ["Evelyn", "Alden"], "familyName": "Bates", "email": "Evelyn.Bates@rockets.utoledo.edu", "@id": "https://orcid.org/0000-0002-4157-2481" @@ -56,10 +47,7 @@ "maintainer": [ { "@type": "Person", - "givenName": [ - "Ali", - "Sajid" - ], + "givenName": ["Ali", "Sajid"], "familyName": "Imami", "email": "Ali.Sajid.Imami@gmail.com", "@id": "https://orcid.org/0000-0003-3684-3539" @@ -349,28 +337,10 @@ }, "applicationCategory": "Genomics", "isPartOf": "https://bioconductor.org", - "keywords": [ - "LINCS", - "iLINCS", - "drugrepurposing", - "drugdiscovery", - "transcriptomics", - "geneexpression", - "geneknockdown", - "geneoverexpression", - "chemicalperturbagen", - "drugfindR", - "r", - "ilincs", - "bioinformatics", - "bioinformatics-pipeline" - ], + "keywords": ["LINCS", "iLINCS", "drugrepurposing", "drugdiscovery", "transcriptomics", "geneexpression", "geneknockdown", "geneoverexpression", "chemicalperturbagen", "drugfindR", "r", "ilincs", "bioinformatics", "bioinformatics-pipeline"], "fileSize": "2083.425KB", "releaseNotes": "https://github.com/CogDisResLab/drugfindR/blob/master/NEWS.md", "readme": "https://github.com/CogDisResLab/drugfindR/blob/devel/README.md", - "contIntegration": [ - "https://github.com/CogDisResLab/drugfindR/actions/workflows/rworkflows.yml", - "https://app.codecov.io/gh/CogDisResLab/drugfindR?branch=devel" - ], + "contIntegration": ["https://github.com/CogDisResLab/drugfindR/actions/workflows/rworkflows.yml", "https://app.codecov.io/gh/CogDisResLab/drugfindR?branch=devel"], "developmentStatus": "https://lifecycle.r-lib.org/articles/stages.html#experimental" } diff --git a/utilities/bump-version.sh b/utilities/bump-version.sh index 227eb71..c421e6a 100755 --- a/utilities/bump-version.sh +++ b/utilities/bump-version.sh @@ -17,8 +17,6 @@ NEW_VERSION="$BASE_VERSION.$PATCH_NUMBER" # Get the current version from the DESCRIPTION file CURRENT_VERSION=$(grep '^Version:' $DESCRIPTION_FILE | awk '{print $2}' || true) -EXPECTED_VERSION="$BASE_VERSION.$((PATCH_NUMBER - 1))" - # Check if the version is already up to date if [[ "$CURRENT_VERSION" == "$NEW_VERSION" ]]; then echo "Version is already up-to-date: $NEW_VERSION" @@ -27,6 +25,8 @@ fi echo "Updating version to: $NEW_VERSION" +export SKIP="bump-version,codemeta-json-updated" + # Update the DESCRIPTION file with the new version if [[ "$OSTYPE" == "darwin"* ]]; then sed -i '' "s/Version: $CURRENT_VERSION/Version: $NEW_VERSION/" $DESCRIPTION_FILE