-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from cpp-lln-lab/dev
[FIX] apply patch end of line extra tab
- Loading branch information
Showing
39 changed files
with
278 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ on: | |
branches: | ||
- master | ||
pull_request: | ||
branches: '*' | ||
|
||
branches: ['*'] | ||
jobs: | ||
build: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
repos: | ||
|
||
- repo: local | ||
|
||
hooks: | ||
|
||
- id: mh_version | ||
name: mh_version | ||
entry: mh_style | ||
args: [-v] | ||
verbose: true | ||
language: python | ||
additional_dependencies: [miss_hit_core] | ||
|
||
# - id: mh_style | ||
# name: mh_style | ||
# entry: mh_style | ||
# args: [--process-slx, --fix] | ||
# files: ^(.*\.(m|slx))$ | ||
# language: python | ||
# additional_dependencies: [miss_hit_core] | ||
|
||
# - id: mh_metric | ||
# name: mh_metric | ||
# entry: mh_metric | ||
# args: [--ci] | ||
# files: ^(.*\.(m|slx))$ | ||
# language: python | ||
# additional_dependencies: [miss_hit_core] | ||
|
||
# - id: mh_lint | ||
# name: mh_lint | ||
# entry: mh_lint | ||
# files: ^(.*\.(m|slx))$ | ||
# language: python | ||
# additional_dependencies: [miss_hit] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,4 @@ formats: | |
python: | ||
version: 3.7 | ||
install: | ||
- requirements: requirements.txt | ||
- requirements: requirements.txt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ | |
], | ||
"license": "MIT license", | ||
"upload_type": "software" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
cd ${HOME} | ||
cd lib/JSONio; mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS; cd .. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
% (C) Copyright 2020 CPP_BIDS developers | ||
|
||
function checkCppBidsDependencies(cfg) | ||
% | ||
% Adds dependencies to the Matlab / Octave path and make sure we got all of them. | ||
% | ||
% USAGE:: | ||
% | ||
% checkCppBidsDependencies(cfg) | ||
% | ||
% :param cfg: Configuration. See ``checkCFG()``. | ||
% :type cfg: structure | ||
|
||
if nargin < 1 | ||
cfg.verbose = 2; | ||
end | ||
|
||
global CPP_BIDS_INITIALIZED | ||
|
||
if isempty(CPP_BIDS_INITIALIZED) | ||
|
||
GITHUB_WORKSPACE = getenv('GITHUB_WORKSPACE'); | ||
|
||
if strcmp(GITHUB_WORKSPACE, '/github/workspace') | ||
|
||
pth = GITHUB_WORKSPACE; | ||
addpath(genpath(fullfile(pth, 'lib'))); | ||
|
||
elseif isempty(GITHUB_WORKSPACE) % local | ||
|
||
pth = fullfile(fileparts(mfilename('fullpath'))); | ||
|
||
addpath(pth); | ||
|
||
addpath(fullfile(pth, 'lib', 'utils')); | ||
|
||
checkSubmodule(fullfile(pth, 'lib', 'JSONio')); | ||
checkSubmodule(fullfile(pth, 'lib', 'bids-matlab')); | ||
|
||
addpath(genpath(fullfile(pth, 'src'))); | ||
|
||
end | ||
|
||
printCreditsCppBids(cfg); | ||
|
||
CPP_BIDS_INITIALIZED = true(); | ||
|
||
else | ||
fprintf(1, '\n\nCPP_BIDS already initialized\n\n'); | ||
|
||
end | ||
|
||
end | ||
|
||
function checkSubmodule(pth) | ||
% If external dir is empty throw an exception | ||
% and ask user to update submodules. | ||
if numel(dir(pth)) <= 2 % Means that the external is empty | ||
error(['Git submodules are not cloned!', ... | ||
'Try this in your terminal:', ... | ||
' git submodule update --recursive ']); | ||
else | ||
addpath(pth); | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.