|
2 | 2 |
|
3 | 3 | **Documentation** |
4 | 4 |
|
5 | | -[](https://cpp-bids-spm.readthedocs.io/en/stable/?badge=stable) |
| 5 | +[](https://cpp_spm.readthedocs.io/en/stable/?badge=stable) |
6 | 6 |
|
7 | 7 | **Code quality and style** |
8 | 8 |
|
9 | | -[](https://github.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline/actions) |
10 | | - |
| 9 | +[](https://github.com/cpp-lln-lab/CPP_SPM/actions) |
| 10 | + |
11 | 11 |
|
12 | 12 | **Unit tests and coverage** |
13 | | - |
14 | | -[](https://travis-ci.com/cpp-lln-lab/CPP_BIDS_SPM_pipeline) |
15 | | -[](https://codecov.io/gh/Remi-Gau/CPP_SPM) |
| 13 | +[](https://codecov.io/gh/cpp-lln-lab/CPP_SPM) |
16 | 14 |
|
17 | 15 | **How to cite** |
18 | 16 |
|
@@ -62,7 +60,7 @@ initCppSpm |
62 | 60 | ``` |
63 | 61 |
|
64 | 62 | Please see our |
65 | | -[documentation](https://cpp-bids-spm.readthedocs.io/en/latest/index.html) for |
| 63 | +[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for |
66 | 64 | more detailed instructions. |
67 | 65 |
|
68 | 66 | ### Dependencies |
@@ -111,7 +109,7 @@ This can perform: |
111 | 109 | The core functions are in the `src` folder. |
112 | 110 |
|
113 | 111 | Please see our |
114 | | -[documentation](https://cpp-bids-spm.readthedocs.io/en/latest/index.html) for |
| 112 | +[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for |
115 | 113 | more info. |
116 | 114 |
|
117 | 115 | ## Octave compatibility |
@@ -145,6 +143,23 @@ Scripts names in general and as well functions related to the demos use a |
145 | 143 |
|
146 | 144 | Constant are written in `UPPERCASE`. |
147 | 145 |
|
| 146 | +#### Pre-commit |
| 147 | + |
| 148 | +There is a [pre-commit hook](https://pre-commit.com/) that you can use to |
| 149 | +reformat files as you commit them. |
| 150 | + |
| 151 | +Install pre-commit by using our `requirements.txt` file |
| 152 | +```bash |
| 153 | +pip install -r requirements.txt |
| 154 | +``` |
| 155 | + |
| 156 | +Install the hook |
| 157 | +```bash |
| 158 | +pre-commit install |
| 159 | +``` |
| 160 | + |
| 161 | +You're done. `mh_style --fix` will now be run every time you commit. |
| 162 | + |
148 | 163 | ## Contributors |
149 | 164 |
|
150 | 165 | Thanks goes to these wonderful people |
|
0 commit comments