From 521e9592a54c1e4fcf3112bcb55408934e3a4256 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 26 Jan 2024 10:36:10 -0500 Subject: [PATCH 1/4] Add dependabot config. --- .github/dependabot.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..2b5fd1113 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + labels: ["maintenance", "ignore-for-release"] + assignees: ["tsalo"] + schedule: + interval: "weekly" + - package-ecosystem: pip + directory: "/" + labels: ["maintenance", "ignore-for-release"] + schedule: + interval: weekly From 33d05f240981953fd668e037cf4a9860e618511c Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 26 Jan 2024 10:36:17 -0500 Subject: [PATCH 2/4] Add other quality of life config files. --- .github/ISSUE_TEMPLATE/bug_report.md | 34 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 4 +++ .github/ISSUE_TEMPLATE/feature_request.md | 16 +++++++++++ .github/pull_request_template.md | 9 ++++++ .github/release.yml | 20 +++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/pull_request_template.md create mode 100644 .github/release.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000..21eacfa37 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,34 @@ +--- +name: Bug report +about: Something not working as described? Missing/incorrect documentation? This is the place. +title: '' +labels: 'bug' +assignees: '' + +--- +## Summary + + +## Additional details + +- CuBIDS version: +- Docker version: +- Singularity version: +- Datalad version: + +### What were you trying to do? + +### What did you expect to happen? + +### What actually happened? + +## Reproducing the bug + + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..574590db2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +contact_links: + - name: Usage question + url: https://neurostars.org/tags/c/software-support/234/cubids + about: Please ask questions about using CuBIDS on NeuroStars. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000..f3d8ef67b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,16 @@ +--- +name: Feature request +about: Got an idea for a new feature, or changing an existing one? This is the place. +title: '' +labels: 'enhancement' +assignees: '' + +--- +## Summary + + +## Additional details + + +## Next steps + diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..b3b3b454c --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +Closes . + +## Changes proposed in this pull request + +- + +## Documentation that should be reviewed + +- diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..0c8fee8e8 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,20 @@ +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: 🛠 Breaking Changes + labels: + - breaking-change + - title: 🎉 Exciting New Features + labels: + - enhancement + - title: 👎 Deprecations + labels: + - deprecation + - title: 🐛 Bug Fixes + labels: + - bug + - title: Other Changes + labels: + - "*" From b562a678f01f86034c693a85c842a9fa68d1b3a4 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 26 Jan 2024 10:38:14 -0500 Subject: [PATCH 3/4] Run black --- cubids/cli.py | 1 + cubids/constants.py | 1 + cubids/cubids.py | 1 + cubids/metadata_merge.py | 1 + cubids/tests/test_bond.py | 1 + cubids/tests/utils.py | 1 + cubids/utils.py | 1 + cubids/validator.py | 1 + cubids/workflows.py | 1 + 9 files changed, 9 insertions(+) diff --git a/cubids/cli.py b/cubids/cli.py index a55cecb0d..94f869c62 100644 --- a/cubids/cli.py +++ b/cubids/cli.py @@ -1,4 +1,5 @@ """Console script for cubids.""" + import argparse import logging import os diff --git a/cubids/constants.py b/cubids/constants.py index 21c8982cd..e383b6853 100644 --- a/cubids/constants.py +++ b/cubids/constants.py @@ -1,4 +1,5 @@ """Constants for CuBIDS.""" + ID_VARS = set(["KeyGroup", "ParamGroup", "FilePath"]) NON_KEY_ENTITIES = set(["subject", "session", "extension"]) # Multi-dimensional keys SliceTiming diff --git a/cubids/cubids.py b/cubids/cubids.py index 842215e0c..2339dc21a 100644 --- a/cubids/cubids.py +++ b/cubids/cubids.py @@ -1,4 +1,5 @@ """Main module.""" + import csv import json import os diff --git a/cubids/metadata_merge.py b/cubids/metadata_merge.py index b542e691c..dc0cbbab6 100644 --- a/cubids/metadata_merge.py +++ b/cubids/metadata_merge.py @@ -1,4 +1,5 @@ """Tools for merging metadata.""" + import json from collections import defaultdict from copy import deepcopy diff --git a/cubids/tests/test_bond.py b/cubids/tests/test_bond.py index 5a0c3aac1..15bfc35f0 100644 --- a/cubids/tests/test_bond.py +++ b/cubids/tests/test_bond.py @@ -1,4 +1,5 @@ """Tests for `cubids` package.""" + import json import os import subprocess diff --git a/cubids/tests/utils.py b/cubids/tests/utils.py index 6f786e46f..22263f9ba 100644 --- a/cubids/tests/utils.py +++ b/cubids/tests/utils.py @@ -1,4 +1,5 @@ """Utility functions for CuBIDS' tests.""" + import hashlib import json import os diff --git a/cubids/utils.py b/cubids/utils.py index 56704d8c6..c94d9e79a 100644 --- a/cubids/utils.py +++ b/cubids/utils.py @@ -1,4 +1,5 @@ """Miscellaneous utility functions for CuBIDS.""" + import re from pathlib import Path diff --git a/cubids/validator.py b/cubids/validator.py index 3f6700417..74343c94b 100644 --- a/cubids/validator.py +++ b/cubids/validator.py @@ -1,4 +1,5 @@ """Methods for validating BIDS datasets.""" + import glob import json import logging diff --git a/cubids/workflows.py b/cubids/workflows.py index 37793981a..3384f1cc5 100644 --- a/cubids/workflows.py +++ b/cubids/workflows.py @@ -1,4 +1,5 @@ """First order workflows in CuBIDS.""" + import json import logging import os From 1ccd6c14a2ae6d1f0e8a5270fb04571529c2e238 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Wed, 31 Jan 2024 16:36:16 -0500 Subject: [PATCH 4/4] Remove containers from issue templates. --- .github/ISSUE_TEMPLATE/bug_report.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 21eacfa37..d57120b43 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -12,8 +12,6 @@ assignees: '' ## Additional details - CuBIDS version: -- Docker version: -- Singularity version: - Datalad version: ### What were you trying to do?