Skip to content

Commit

Permalink
Merge branch 'bep-016' into tensor_as_representation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lestropie committed Apr 23, 2024
2 parents eddad22 + 48a6a42 commit c6e50fc
Show file tree
Hide file tree
Showing 241 changed files with 23,057 additions and 7,408 deletions.
3,220 changes: 3,220 additions & 0 deletions .all-contributorsrc

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
jobs:
build_docs:
docker:
- image: cimg/python:3.8
- image: cimg/python:3.12-node
steps:
# checkout code to default ~/project
- checkout
Expand All @@ -21,14 +21,15 @@ jobs:
- persist_to_workspace:
# the mkdocs build outputs are in ~/project/site
root: ~/project
paths: site
paths:
- site
- store_artifacts:
path: ~/project/site/
destination: dev_docs

check_links:
docker:
- image: cimg/python:3.8
- image: cimg/python:3.12
steps:
# checkout code to default ~/project
- checkout
Expand Down Expand Up @@ -66,14 +67,16 @@ jobs:
build_docs_pdf:
docker:
- image: danteev/texlive:latest
- image: texlive/texlive:latest
steps:
# checkout code to default ~/project
- checkout
- run:
name: install dependencies
command: |
apt-get update && apt install -y python3-pip
apt-get update && apt install -y python3-pip python3-venv pandoc
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r ~/project/requirements.txt
python3 -m pip install ~/project/tools/schemacode/[render]
Expand All @@ -83,6 +86,7 @@ jobs:
- run:
name: generate pdf version docs
command: |
source .venv/bin/activate
cd ~/project/pdf_build_src
bash build_pdf.sh
mv ~/project/pdf_build_src/bids-spec.pdf ~/project/bids-spec.pdf
Expand Down Expand Up @@ -128,7 +132,8 @@ jobs:
- persist_to_workspace:
# raw generated changelog in ~/changelog_build/CHANGES.md
root: ~/.
paths: changelog_build
paths:
- changelog_build

# Lint and fix the auto generated changes.md file
lint_generated_changelog:
Expand Down Expand Up @@ -161,7 +166,8 @@ jobs:
- persist_to_workspace:
# linted and fixed changelog in ~/changelog_build/CHANGES.md
root: ~/.
paths: changelog_build
paths:
- changelog_build

# Push built changelog to repo
commit_generated_changelog:
Expand All @@ -175,7 +181,7 @@ jobs:
- attach_workspace:
# fixed+linted changelog in ~/changelog_build/CHANGES.md
at: ~/.
- deploy:
- run:
name: Changelog deployment
# $CHANGE_TOKEN is generated via the GitHub web UI, and then securely stored within CircleCI web UI
command: |
Expand All @@ -194,7 +200,6 @@ jobs:
fi
workflows:
version: 2
search_build:
jobs:
- build_docs
Expand Down
7 changes: 4 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore:
- "*/*/tests/*"
- "**/tests/*"

- "*/*/tests/*"
- "**/tests/*"
codecov:
token: 7e84a7fb-8f7e-45f5-8dcc-9f5219fa3855
11 changes: 11 additions & 0 deletions .codespell_dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sub-directory->subdirectory
Sub-directory->Subdirectory
sub-directories->subdirectories
Sub-directories->Subdirectories
file name->filename
File name->Filename
file names->filenames
File names->Filenames
folder->directory
Folder->Directory
Folders->Directories
8 changes: 8 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[codespell]
skip = *.js,*.svg,*.eps,.git,node_modules,env,venv,.mypy_cache,package-lock.json,CITATION.cff,tools/new_contributors.tsv,./tools/schemacode/docs/build
ignore-words-list = fo,te,als,Acknowledgements,acknowledgements,weill,bu,winn,manuel
builtin = clear,rare,en-GB_to_en-US
# this overloads default dictionaries and I have not yet figured out
# how to have multiple https://github.com/codespell-project/codespell/issues/2727
# dictionary = .codespell_dict
exclude-file = src/CHANGES.md
27 changes: 27 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# labeler "full" schema
# https://github.com/marketplace/actions/auto-labeler

# enable labeler on issues, prs, or both.
enable:
issues: false
prs: true
# comments object allows you to specify a different message for issues and prs

comments:
prs: |
I have applied any labels matching special text in your title and description.
Please review the labels and make any necessary changes.
# Labels is an object where:
# - keys are labels
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
# - pattern must be a valid regex, and is applied globally to
# title + description of issues and/or prs (see enabled config above)
# - 'include' patterns will associate a label if any of these patterns match
# - 'exclude' patterns will ignore this label if any of these patterns match
labels:
exclude-from-changelog:
include:
- 'pre-commit\.ci'
exclude: []
20 changes: 0 additions & 20 deletions .github/workflows/codespell.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Label PRs"
# See https://github.com/marketplace/actions/auto-labeler

on:

pull_request_target:
types: [opened]

jobs:

labeler:
runs-on: ubuntu-latest

if: github.repository_owner == 'bids-standard'

steps:
- name: Check Labels
id: labeler
uses: jimschubert/labeler-action@v2
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
17 changes: 0 additions & 17 deletions .github/workflows/markdown_style.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/no-bad-latin.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/redirect_circleci_artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
on: [status]

jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
if: "${{ startsWith(github.event.context, 'ci/circleci: build_docs_pdf') }}"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
uses: larsoner/circleci-artifacts-redirector-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_TOKEN }}
artifact-path: 0/bids-spec.pdf
circleci-jobs: build_docs_pdf
job-title: Check the rendered PDF version here!
Loading

0 comments on commit c6e50fc

Please sign in to comment.