Skip to content

Commit 63ede35

Browse files
authored
Initial commit
0 parents  commit 63ede35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+7247
-0
lines changed

.codespellrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[codespell]
2+
skip = .git,*.pdf,*.svg,*.html,dataset_description.json,*.bib
3+
# te - TE
4+
# Weill - name
5+
# reson - Reson. abbreviation in citation
6+
ignore-words-list = te,weill,reson

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# python cache
2+
__pycache__/**/*
3+
__pycache__
4+
*.pyc
5+
6+
# python distribution
7+
build/**/*
8+
build
9+
dist/**/*
10+
dist
11+
fmripost_template.egg-info/**/*
12+
fmripost_template.egg-info
13+
.eggs/**/*
14+
.eggs

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Tue Apr 1 10:16:12 2025 -0400 - markiewicz@stanford.edu - sty: ruff format [ignore-rev]
2+
3577bfbbac45ca1e2f9d8b6dd3c036eba5dcd7d2

.git_archival.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
4+
ref-names: $Format:%D$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Bug Report
2+
description: File a report of a problem you encountered.
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# Thanks for taking the time to fill out this bug report!
9+
### The following information will help us in getting your issue resolved.
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: A short description of what went wrong.
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: command
19+
attributes:
20+
label: What command did you use?
21+
description: |
22+
If you're using `fmriprep-docker`, please include the `RUNNING: ...` line that is printed first.
23+
This helps us replicate the problem. This will be automatically formatted into code, so no need for backticks.
24+
render: shell
25+
validations:
26+
required: true
27+
- type: input
28+
id: version
29+
attributes:
30+
label: What version of fMRIPost-template are you running?
31+
validations:
32+
required: true
33+
- type: dropdown
34+
id: environment
35+
attributes:
36+
label: How are you running fMRIPost-template?
37+
options:
38+
- Docker
39+
- Singularity
40+
- Local installation ("bare-metal")
41+
- Other
42+
validations:
43+
required: true
44+
- type: dropdown
45+
id: bids-valid
46+
attributes:
47+
label: Is your data BIDS valid?
48+
description: |
49+
The BIDS validator can be found at: https://bids-standard.github.io/bids-validator/
50+
Errors should not be present, but warnings are acceptable.
51+
options:
52+
- "Yes"
53+
- "No"
54+
validations:
55+
required: true
56+
- type: dropdown
57+
id: reuse
58+
attributes:
59+
label: Are you reusing any previously computed results?
60+
description: |
61+
You can select multiple options.
62+
We recommend using a fresh working directory when upgrading to a new fMRIPost-template minor series.
63+
multiple: true
64+
options:
65+
- FreeSurfer
66+
- Anatomical derivatives
67+
- Work directory
68+
- "No"
69+
validations:
70+
required: true
71+
- type: textarea
72+
id: logs
73+
attributes:
74+
label: Please copy and paste any relevant log output.
75+
description: |
76+
Can you find some traces of the error reported in the visual report (at the bottom) or in *crashfiles*?
77+
This will be automatically formatted into code, so no need for backticks.
78+
render: shell
79+
- type: textarea
80+
id: addinfo
81+
attributes:
82+
label: Additional information / screenshots
83+
description: |
84+
If you would like to include any further information, such as any visual reports, please include them below.
85+
Alternatively, you can privately share with us at <nipreps@gmail.com>.
86+
Reports do not contain data usable with personal identification or other research purposes.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Questions
4+
url: https://neurostars.org/tag/fmripost-template
5+
about: For general questions, please search Neurostars for existing posts before starting a new one.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Documentation improvement
3+
about: Is the documentation of something missing, unclear, or lacking? This is the place.
4+
title: ''
5+
labels: 'documentation'
6+
assignees: ''
7+
8+
---
9+
<!--
10+
For the Documentation request, please include the following:
11+
------------------------
12+
What would you like changed/added and why?
13+
Do you have any suggestions for the new documents?
14+
-->
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Feature Request
2+
description: Suggest an idea for a new feature or a change to an existing one.
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## Thank you for your suggestion!
9+
10+
We welcome any ideas about how to make *fMRIPost-template* better for the community.
11+
Please keep in mind that features may not get implemented immediately.
12+
- type: textarea
13+
id: summary
14+
attributes:
15+
label: What would you like to see added in fMRIPost-template?
16+
description: |
17+
What are you trying to achieve with fMRIPost-template?
18+
Is this a more convenient way to do something that is already possible, or is a workaround currently unfeasible?
19+
Does this feature adhere to the [NiPreps driving principles](https://www.nipreps.org/community/CONTRIBUTING/#driving-principles)?
20+
validations:
21+
required: true
22+
- type: dropdown
23+
id: interest
24+
attributes:
25+
label: Do you have any interest in helping implement the feature?
26+
description: |
27+
We appreciate any help you can offer!
28+
For information on how to contribute, please refer to our [contributing guidelines](https://www.nipreps.org/community/CONTRIBUTING/).
29+
options:
30+
- "Yes"
31+
- "Yes, but I would need guidance"
32+
- "No"
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: addinfo
37+
attributes:
38+
label: Additional information / screenshots
39+
description: Add any additional information or context about the feature request here.

.github/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
2+
3+
# Comment to be posted to on PRs from first time contributors in your repository
4+
newPRWelcomeComment: >
5+
:wave: Welcome, and thank you for your first contribution!
6+
7+
We ask you to take a moment to read through our Contributing Guide:
8+
9+
:point_right: https://github.com/nipreps/fmripost-template/blob/main/CONTRIBUTING.md
10+
11+
These guidelines help us maintain a consistent and collaborative workflow.
12+
But don't worry — you don't have to get everything perfect on the first try!
13+
14+
:mag: Here are a few quick tips:
15+
16+
1. **Start a conversation**: Consider opening an issue to discuss your idea
17+
before submitting a pull request. It might save you time.
18+
1. **Descriptive titles**: Please use a clear, descriptive title for your
19+
pull request. If it is still a work in progress, mark it as a "Draft".
20+
1. **Licensing**: All contributions will be licensed under the Apache 2.0
21+
license — the same as the rest of the project.
22+
1. **Authorship**: You're invited to add yourself to the `.zenodo.json` file.
23+
file. This will credit you as a co-author in the next release. Please add
24+
your name as the second-to-last entry, just above the last author.
25+
26+
A pull request is a conversation. We may suggest changes before merging,
27+
and likewise, you should feel free to ask us any questions you have.
28+
29+
:rocket: We're happy to have you here!

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'monthly'
7+
groups:
8+
actions-infrastructure:
9+
patterns:
10+
- 'actions/*'
11+
docker:
12+
patterns:
13+
- 'docker/*'

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Closes .
2+
3+
## Changes proposed in this pull request
4+
5+
<!--
6+
Please describe here the main features / changes proposed for review and integration in fMRIPost-template
7+
If this PR addresses some existing problem, please use GitHub's citing tools
8+
(e.g., ref #, closes # or fixes #).
9+
If there is not an existing issue open describing the problem, please consider opening a new
10+
issue first and then link it from here (so the *fMRIPost-template* community has a better understanding
11+
of ongoing development efforts and possible overlaps between contributions).
12+
-->
13+
14+
15+
## Documentation that should be reviewed
16+
<!--
17+
Please summarize here the main changes to the documentation that the reviewers should be aware of.
18+
-->

.github/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: 🛠 Breaking Changes
7+
labels:
8+
- breaking-change
9+
- title: 🎉 Exciting New Features
10+
labels:
11+
- enhancement
12+
- title: 👎 Deprecations
13+
labels:
14+
- deprecation
15+
- title: 🐛 Bug Fixes
16+
labels:
17+
- bug
18+
- title: Other Changes
19+
labels:
20+
- "*"

.github/workflows/contrib.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Contribution checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- maint/*
8+
pull_request:
9+
branches:
10+
- main
11+
- maint/*
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
style:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- run: pipx run ruff check .
30+
- run: pipx run ruff format --diff .
31+
32+
codespell:
33+
name: Check for spelling errors
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
- name: Codespell
40+
uses: codespell-project/actions-codespell@v2

.github/workflows/docker.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish Docker image
2+
3+
on:
4+
push:
5+
branches: [ignore]
6+
# release:
7+
# types: [published]
8+
9+
jobs:
10+
push_to_registry:
11+
name: Push Docker image to Docker Hub
12+
runs-on: ubuntu-latest
13+
permissions:
14+
packages: write
15+
contents: read
16+
attestations: write
17+
id-token: write
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3.10.0
25+
26+
- name: Log in to Docker Hub
27+
uses: docker/login-action@v3.4.0
28+
with:
29+
username: niprepsbot
30+
password: ${{ secrets.DOCKER_TOKEN }}
31+
32+
- name: Extract metadata (tags, labels) for Docker
33+
id: meta
34+
uses: docker/metadata-action@v5.7.0
35+
with:
36+
images: nipreps/fmripost-template
37+
# generate Docker tags based on the following events/attributes
38+
tags: |
39+
type=ref,event=branch
40+
type=semver,pattern={{version}}
41+
42+
- name: Build and push Docker image
43+
uses: docker/build-push-action@v6.15.0
44+
with:
45+
context: .
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)