Skip to content

Commit

Permalink
Merge pull request #375 from effigies/mnt/precommit
Browse files Browse the repository at this point in the history
MNT: Add pre-commit config
  • Loading branch information
effigies authored Jul 7, 2023
2 parents c80ef5a + 7361300 commit 54b05c0
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .circleci/artifact_path
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/0/tmp/gh-pages/docs/_build/no_version_html/html/index.html
/0/tmp/gh-pages/docs/_build/no_version_html/html/index.html
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- checkout:
path: /tmp/src/sdcflows

- run:
- run:
name: Configure git (pacify datalad)
command: |
git config --global user.name "First Last"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
source /tmp/buildenv/bin/activate
python -m pip install -U build "setuptools >= 45" wheel "setuptools_scm >= 6.2" \
setuptools_scm_git_archive pip twine docutils
python -m build -s -w
python -m twine check dist/sdcflows-*
mv dist /tmp/package
Expand Down
1 change: 0 additions & 1 deletion .maint/MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ If you are participating because of your affiliation with another organization (
| Esteban | Oscar | @oesteban | 0000-0001-8435-6191 | Lausanne University Hospital and University of Lausanne, Lausanne, Switzerland |
| Goncalves | Mathias | @mgxd | 0000-0002-7252-7771 | Department of Psychology, Stanford University, CA, USA |
| Markiewicz | Christopher J. | @effigies | 0000-0002-6533-164X | Department of Psychology, Stanford University, CA, USA |

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

24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
exclude: ".*/data/.*"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
# Enable when no significant PRs are in progress
# - repo: https://github.com/psf/black
# rev: 23.1.0
# hooks:
# - id: black
# - repo: https://github.com/pycqa/isort
# rev: 5.12.0
# hooks:
# - id: isort
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ docker:
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg VERSION=`python setup.py --version` .

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SDCFlows
.. image:: https://github.com/nipreps/sdcflows/workflows/Deps%20&%20CI/badge.svg
:target: https://github.com/nipreps/sdcflows/actions

SDCFlows (*Susceptibility Distortion Correction workFlows*) is a Python library of
SDCFlows (*Susceptibility Distortion Correction workFlows*) is a Python library of
*NiPype*-based workflows to preprocess *B0* mapping data, estimate the corresponding
fieldmap and finally correct for susceptibility distortions.
Susceptibility-derived distortions are typically displayed by images acquired with EPI
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/css/version-switch.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.version-tree ul {
list-style-type: none;
}
}
2 changes: 1 addition & 1 deletion docs/_static/js/version-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ $(document).ready(function() {
}).fail(function() {
$("#version-menu").hide(); // JSON download failed - hide dropdown
});
});
});
2 changes: 1 addition & 1 deletion docs/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
.. _FSL: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/
.. _ANTs: https://stnava.github.io/ANTs/
.. _AFNI: https://afni.nimh.nih.gov/
.. _FreeSurfer: https://surfer.nmr.mgh.harvard.edu/
.. _FreeSurfer: https://surfer.nmr.mgh.harvard.edu/
1 change: 0 additions & 1 deletion docs/tools/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ https://www.mail-archive.com/[email protected]/msg02472.html

and were released under a BSD/MIT license by Fernando Perez, Matthew Brett and
the PyMVPA folks. Further cleanups by the scikit-image crew.

0 comments on commit 54b05c0

Please sign in to comment.