Skip to content

Commit

Permalink
FIX: ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 24, 2024
1 parent 00edd77 commit b43f54a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
34 changes: 19 additions & 15 deletions mne_bids_pipeline/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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."
)
Expand Down
3 changes: 2 additions & 1 deletion mne_bids_pipeline/steps/sensor/_99_group_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b43f54a

Please sign in to comment.