Skip to content

Commit 54b05c0

Browse files
authored
Merge pull request #375 from effigies/mnt/precommit
MNT: Add pre-commit config
2 parents c80ef5a + 7361300 commit 54b05c0

File tree

12 files changed

+31
-11
lines changed

12 files changed

+31
-11
lines changed

.circleci/artifact_path

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/0/tmp/gh-pages/docs/_build/no_version_html/html/index.html
1+
/0/tmp/gh-pages/docs/_build/no_version_html/html/index.html

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- checkout:
6161
path: /tmp/src/sdcflows
6262

63-
- run:
63+
- run:
6464
name: Configure git (pacify datalad)
6565
command: |
6666
git config --global user.name "First Last"

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
source /tmp/buildenv/bin/activate
4848
python -m pip install -U build "setuptools >= 45" wheel "setuptools_scm >= 6.2" \
4949
setuptools_scm_git_archive pip twine docutils
50-
50+
5151
python -m build -s -w
5252
python -m twine check dist/sdcflows-*
5353
mv dist /tmp/package

.maint/MAINTAINERS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ If you are participating because of your affiliation with another organization (
1212
| Esteban | Oscar | @oesteban | 0000-0001-8435-6191 | Lausanne University Hospital and University of Lausanne, Lausanne, Switzerland |
1313
| Goncalves | Mathias | @mgxd | 0000-0002-7252-7771 | Department of Psychology, Stanford University, CA, USA |
1414
| Markiewicz | Christopher J. | @effigies | 0000-0002-6533-164X | Department of Psychology, Stanford University, CA, USA |
15-

.maint/PIs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ If you are participating because of your affiliation with another organization (
1414
| Poldrack | Russell A. | @poldrack | 0000-0001-6755-0259 | Department of Psychology, Stanford University, CA, USA |
1515
| Satterthwaite | Theodore D. | | 0000-0001-7072-9399 | Perelman School of Medicine, University of Pennsylvania, PA, USA |
1616
| Gorgolewski | Krzysztof J. | @chrisgorgo | 0000-0003-3321-7583 | Google LLC |
17-

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
exclude: ".*/data/.*"
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.4.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-docstring-first
8+
- id: check-merge-conflict
9+
- id: check-json
10+
- id: check-toml
11+
- id: check-yaml
12+
- id: debug-statements
13+
- id: end-of-file-fixer
14+
- id: fix-byte-order-marker
15+
- id: trailing-whitespace
16+
# Enable when no significant PRs are in progress
17+
# - repo: https://github.com/psf/black
18+
# rev: 23.1.0
19+
# hooks:
20+
# - id: black
21+
# - repo: https://github.com/pycqa/isort
22+
# rev: 5.12.0
23+
# hooks:
24+
# - id: isort

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ docker:
1515
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
1616
--build-arg VCS_REF=`git rev-parse --short HEAD` \
1717
--build-arg VERSION=`python setup.py --version` .
18-

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SDCFlows
1313
.. image:: https://github.com/nipreps/sdcflows/workflows/Deps%20&%20CI/badge.svg
1414
:target: https://github.com/nipreps/sdcflows/actions
1515

16-
SDCFlows (*Susceptibility Distortion Correction workFlows*) is a Python library of
16+
SDCFlows (*Susceptibility Distortion Correction workFlows*) is a Python library of
1717
*NiPype*-based workflows to preprocess *B0* mapping data, estimate the corresponding
1818
fieldmap and finally correct for susceptibility distortions.
1919
Susceptibility-derived distortions are typically displayed by images acquired with EPI
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.version-tree ul {
22
list-style-type: none;
3-
}
3+
}

docs/_static/js/version-switch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ $(document).ready(function() {
3838
}).fail(function() {
3939
$("#version-menu").hide(); // JSON download failed - hide dropdown
4040
});
41-
});
41+
});

0 commit comments

Comments
 (0)