Skip to content

Commit

Permalink
Merge branch 'master' into jpeg2000
Browse files Browse the repository at this point in the history
  • Loading branch information
jennan committed Sep 22, 2023
2 parents ecfebe5 + 5552416 commit 844b88d
Show file tree
Hide file tree
Showing 80 changed files with 6,339 additions and 3,776 deletions.
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = .git,.venv,venvs,*.svg,_build
# te -- TE as codespell is case insensitive
ignore-words-list = bu,nd,te
3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- DO NOT DELETE THIS!
<!-- DO NOT DELETE THIS!
This template is used to facilitate issue resolution.
All text in <!-> tags will not be displayed.
-->
Expand All @@ -20,5 +20,5 @@ Choose one:
- [ ] Container
<!-- If selected, please provide container name and tag"-->

- Heudiconv version:
- Heudiconv version:
<!-- To check: run heudiconv with just the --version flag -->
19 changes: 19 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Codespell
uses: codespell-project/actions-codespell@v2
18 changes: 14 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -20,12 +20,22 @@ jobs:
working-directory: utils

- name: Build Docker image
run: docker build -t nipy/heudiconv:master .
run: |
# build only if not release tag, i.e. has some "-" in describe
# so we do not duplicate work with release workflow.
git describe --match 'v[0-9]*' | grep -q -e - && \
docker build \
-t nipy/heudiconv:master \
-t nipy/heudiconv:unstable \
.
- name: Push Docker image
run: |
docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN"
docker push nipy/heudiconv:master
git describe --match 'v[0-9]*' | grep -q -e - && (
docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN"
docker push nipy/heudiconv:master
docker push nipy/heudiconv:unstable
)
env:
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linters

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up environment
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Run linters
run: tox -e lint
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -67,8 +67,9 @@ jobs:
run: |
docker build \
-t nipy/heudiconv:master \
-t nipy/heudiconv:unstable \
-t nipy/heudiconv:latest \
-t nipy/heudiconv:"$(git describe)" \
-t nipy/heudiconv:"$(git describe | sed -e 's,^v,,g')" \
.
- name: Push Docker images
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Type-check

on:
- push
- pull_request

jobs:
typing:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Run type checker
run: tox -e typing
10 changes: 6 additions & 4 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
*.egg-info/
*.pyc
.cache/
.coverage
*.egg-info/
.idea/
venvs/
.tox/
.vscode/
_build/
_version.py
build/
dist/
.vscode/
_version.py
sample_nifti.json
venvs/
29 changes: 25 additions & 4 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
Mathias Goncalves <[email protected]> <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]>
Basile Pinsard <[email protected]>
Chris Filo Gorgolewski <[email protected]> Chris Gorgolewski <[email protected]>
Christopher J. Markiewicz <[email protected]>
Dae Houlihan <[email protected]> Dae <[email protected]>
Isaac To <[email protected]> Isaac To <[email protected]>
John Lee <[email protected]>
John Lee <[email protected]> <[email protected]>
John T. Wodder II <[email protected]> <[email protected]>
Jörg Stadler <[email protected]> Joerg Stadler <[email protected]>
Jörg Stadler <[email protected]> Joerg Stadler <[email protected]>
Jörg Stadler <[email protected]> Jörg Stadler <[email protected]>
Jörg Stadler <[email protected]> Jörg Stadler <[email protected]>
Mathias Goncalves <[email protected]> mathiasg <[email protected]>
Mathias Goncalves <[email protected]> mathiasg <[email protected]>
Mathias Goncalves <[email protected]> Mathias Goncalves <[email protected]>
Mathias Goncalves <[email protected]> Mathias Goncalves <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]> Matteo Visconti dOC <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]> Matteo Visconti dOC <[email protected]>
Matteo Visconti di Oleggio Castello <[email protected]> <[email protected]>
Michael Dayan <[email protected]> <[email protected]>
Michael Krause <[email protected]> <[email protected]>
Pablo Velasco <[email protected]> <[email protected]>
Pablo Velasco <[email protected]> pvelasco <[email protected]>
Satrajit Ghosh <[email protected]> Satrajit Ghosh <[email protected]>
Steven Tilley <[email protected]> Steven Tilley <[email protected]>
Steven Tilley <[email protected]> Steven Tilley <[email protected]>
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-unused-arguments
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ python:
build:
os: ubuntu-20.04
tools:
python: "3"
python: "3.9"
sphinx:
configuration: docs/conf.py
fail_on_warning: true
Loading

0 comments on commit 844b88d

Please sign in to comment.