diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbd9b0a06..363ef00c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,17 +5,11 @@ files: ^(.*\.(py|yaml))$ # for example exclude: ^(\.[^/]*cache/.*|.*/freesurfer/contrib/.*)$ repos: - - repo: https://github.com/psf/black - rev: 23.12.1 - hooks: - - id: black - args: - - --safe - - --quiet - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.1.14 hooks: - id: ruff + - id: ruff-format - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: diff --git a/mne_bids_pipeline/_main.py b/mne_bids_pipeline/_main.py index 9489a2cca..5abdd142f 100755 --- a/mne_bids_pipeline/_main.py +++ b/mne_bids_pipeline/_main.py @@ -30,14 +30,16 @@ def main(): metavar="FILE", help="The path of the pipeline configuration file to use.", ) - parser.add_argument( - "--create-config", - dest="create_config", - default=None, - metavar="FILE", - help="Create a template configuration file with the specified name. " - "If specified, all other parameters will be ignored.", - ), + ( + parser.add_argument( + "--create-config", + dest="create_config", + default=None, + metavar="FILE", + help="Create a template configuration file with the specified name. " + "If specified, all other parameters will be ignored.", + ), + ) parser.add_argument( "--steps", dest="steps", @@ -59,18 +61,20 @@ def main(): default=None, help="BIDS root directory of the data to process.", ) - parser.add_argument( - "--deriv_root", - dest="deriv_root", - default=None, - help=dedent( - """\ + ( + parser.add_argument( + "--deriv_root", + dest="deriv_root", + default=None, + help=dedent( + """\ The root of the derivatives directory in which the pipeline will store the processing results. If unspecified, this will be derivatives/mne-bids-pipeline inside the BIDS root.""" + ), ), - ), + ) parser.add_argument( "--subject", dest="subject", default=None, help="The subject to process." ) diff --git a/mne_bids_pipeline/steps/sensor/_99_group_average.py b/mne_bids_pipeline/steps/sensor/_99_group_average.py index a05a85a96..98e275336 100644 --- a/mne_bids_pipeline/steps/sensor/_99_group_average.py +++ b/mne_bids_pipeline/steps/sensor/_99_group_average.py @@ -814,7 +814,8 @@ def average_csp_decoding( import scipy.stats cluster_forming_t_threshold = scipy.stats.t.ppf( - 1 - 0.05, len(cfg.subjects) - 1 # one-sided test + 1 - 0.05, + len(cfg.subjects) - 1, # one-sided test ) else: cluster_forming_t_threshold = cfg.cluster_forming_t_threshold