Skip to content

Commit

Permalink
Merge pull request #289 from yarikoptic/bf-codespell
Browse files Browse the repository at this point in the history
Minor: codespell run + ignore
  • Loading branch information
effigies authored May 3, 2021
2 parents 5bd6dba + 0569dcf commit b55d285
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ secrets.py
local_settings.py

*.swp
.pytest_cache
2 changes: 1 addition & 1 deletion fitlins/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
# TAG-NUM-gHEX
mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe)
if not mo:
# unparseable. Maybe git-describe is misbehaving?
# unparsable. Maybe git-describe is misbehaving?
pieces["error"] = ("unable to parse git-describe output: '%s'"
% describe_out)
return pieces
Expand Down
8 changes: 4 additions & 4 deletions fitlins/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def get_parser():
# optional arguments
parser.add_argument('--version', action='version', version=verstr)
parser.add_argument('-v', '--verbose', action='count', default=0,
help="increase log verbosity for each occurence, debug level is -vvv")
help="increase log verbosity for each occurrence, debug level is -vvv")
parser.add_argument('-q', '--quiet', action='count', default=0,
help="decrease log verbosity for each occurence, debug level is -vvv")
help="decrease log verbosity for each occurrence, debug level is -vvv")

g_bids = parser.add_argument_group('Options for filtering BIDS queries')
g_bids.add_argument('--participant-label', action='store', nargs='+', default=None,
Expand All @@ -101,7 +101,7 @@ def get_parser():
g_bids.add_argument('--desc-label', action='store', default='preproc',
help="use BOLD files with the provided description label")
g_bids.add_argument('--database-path', action='store', default=None,
help="Path to directory containing SQLite database indicies "
help="Path to directory containing SQLite database indices "
"for this BIDS dataset. "
"If a value is passed and the file already exists, "
"indexing is skipped.")
Expand Down Expand Up @@ -208,7 +208,7 @@ def run_fitlins(argv=None):

if opts.estimator != 'afni':
if opts.error_ts:
raise NotImplementedError("Saving the error time series is only implmented for"
raise NotImplementedError("Saving the error time series is only implemented for"
" the afni estimator. If this is a feature you want"
f" for {opts.estimator} please let us know on github.")

Expand Down
2 changes: 1 addition & 1 deletion fitlins/interfaces/afni.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _run_interface(self, runtime):
model_metadata.append({'stat': attr, **out_ents})
model_maps.append(fname)

# get pvals and zscore buckets (niftis with heterogenous intent codes)
# get pvals and zscore buckets (niftis with heterogeneous intent codes)
pval = Pval()
pval.inputs.in_file = reml_res.outputs.out_file
pval.inputs.out_file = "pval_maps.nii.gz"
Expand Down
2 changes: 1 addition & 1 deletion fitlins/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pytest_addoption(parser):
help='directory containing reference results for evaluating test results')
parser.addoption(
'--database-path', action="append", default=[],
help="Path to directory containing SQLite database indicies "
help="Path to directory containing SQLite database indices "
"for this BIDS dataset. "
"If a value is passed and the file already exists, "
"indexing is skipped."
Expand Down

0 comments on commit b55d285

Please sign in to comment.