Skip to content

Commit fa4788c

Browse files
committed
run precommit
1 parent 91136a2 commit fa4788c

File tree

19 files changed

+44
-40
lines changed

19 files changed

+44
-40
lines changed

.github/workflows/miss_hit_code_quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip setuptools
35-
pip3 install -r requirements.txt
35+
pip3 install -r requirements.txt
3636
3737
- name: MISS_HIT Metrics
3838
run: |
3939
mh_metric --ci
4040
4141
- name: MISS_HIT Bug finder
4242
run: |
43-
mh_lint
43+
mh_lint

.github/workflows/miss_hit_code_style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
python -m pip install --upgrade pip setuptools
35-
pip3 install -r requirements.txt
35+
pip3 install -r requirements.txt
3636
3737
- name: MISS_HIT Code style
3838
run: |
39-
mh_style --process-slx
39+
mh_style --process-slx

.github/workflows/run_tests.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
sudo apt-get -y -qq update
22-
sudo apt-get -y install octave liboctave-dev
22+
sudo apt-get -y install octave liboctave-dev
2323
24-
- name: Clone spm_2_bids
24+
- name: Clone spm_2_bids
2525
uses: actions/checkout@v2
2626
with:
2727
submodules: true
28-
fetch-depth: 2
29-
28+
fetch-depth: 2
29+
3030
- name: get bids-matlab and JSONio
3131
run: |
3232
make install_dev_octave
@@ -35,27 +35,22 @@ jobs:
3535
uses: joergbrech/moxunit-action@master
3636
with:
3737
tests: tests # files or directories containing the MOxUnit test cases
38-
src: src lib/bids-matlab lib/JSONio # directories to be added to path before running the tests.
38+
src: src lib/bids-matlab lib/JSONio # directories to be added to path before running the tests.
3939
ext: tests/utils # External resources to add to the search put (excluded from coverage)
40-
# data: # Directory for test data
40+
# data: # Directory for test data
4141
with_coverage: true
4242
cover_xml_file: coverage.xml
4343

4444
- name: Upload coverage
45-
uses: actions/upload-artifact@v1
46-
with:
47-
name: coverage_file
48-
path: coverage.xml
45+
uses: actions/upload-artifact@v1
46+
with:
47+
name: coverage_file
48+
path: coverage.xml
4949

5050
- name: Code coverage
5151
uses: codecov/codecov-action@v1
5252
with:
5353
file: coverage.xml # optional
5454
flags: unittests # optional
5555
name: codecov-umbrella # optional
56-
fail_ci_if_error: true # optional (default = false)
57-
58-
59-
60-
61-
56+
fail_ci_if_error: true # optional (default = false)

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ codegen/
4848

4949
# Octave session info
5050
octave-workspace
51-
52-

.pre-commit-config.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,18 @@ repos:
2525
entry: mh_lint
2626
files: ^(.*\.(m|slx))$
2727
language: python
28-
additional_dependencies: [miss_hit]
28+
additional_dependencies: [miss_hit]
29+
30+
- repo: https://github.com/pre-commit/pre-commit-hooks
31+
rev: v4.1.0
32+
hooks:
33+
- id: trailing-whitespace
34+
- id: end-of-file-fixer
35+
- id: check-yaml
36+
- id: check-added-large-files
37+
38+
- repo: https://github.com/pre-commit/pygrep-hooks
39+
rev: v1.9.0
40+
hooks:
41+
- id: rst-backticks # Detect common mistake of using single backticks when writing rst
42+
- id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ install_dev_octave:
1111

1212
clean:
1313
rm -rf lib/bids-matlab
14-
rm -rf lib/JSONio
14+
rm -rf lib/JSONio

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ Most of the renaming is based on the SPM prefixes combinations.
2626
It is configurable to adapt to new set of prefixes.
2727

2828
- [Dependencies](./lib/README.md)
29-
- [Documentation](https://spm-2-bids.readthedocs.io/en/latest/)
29+
- [Documentation](https://spm-2-bids.readthedocs.io/en/latest/)

binder/postBuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ cd JSONio; mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS; cd ..
99
octave --no-gui --no-window-system --silent --eval "addpath (fullfile (getenv (\"HOME\"), \"JSONio\")); savepath ();"
1010

1111
cd ${HOME}/examples
12-

docs/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build
1+
build

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Sphinx
22
sphinxcontrib-matlabdomain
33
sphinxcontrib-napoleon
4-
sphinx_rtd_theme
4+
sphinx_rtd_theme

0 commit comments

Comments
 (0)