Skip to content

Commit

Permalink
int: codespell happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia committed Aug 12, 2023
1 parent 338d7e1 commit 884ba21
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ git checkout master
git branch --set-upstream-to=upstream/master

# !!! VERY IMPORTANT !!!
# Set the deafult push to origin, in order NOT to push by mistake to upstream.
# Set the default push to origin, in order NOT to push by mistake to upstream.
git config remote.pushDefault origin

# Install package with pip using the developer mode and the `[dev]` label
Expand Down
2 changes: 1 addition & 1 deletion phys2cvr/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,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
4 changes: 2 additions & 2 deletions phys2cvr/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _get_parser():
"to estimate CVR maps."
"It can also be used to generate "
"regressors to run the estimation "
"with other softwares.\n"
"with other software.\n"
f"Version {__version__}"
),
add_help=False,
Expand Down Expand Up @@ -305,7 +305,7 @@ def _get_parser():
)

title_opt_r2model = parser.add_argument_group(
"Optional Arguments to select R^2 model " "for regresion step"
"Optional Arguments to select R^2 model for regression step"
)

opt_r2model = title_opt_r2model.add_mutually_exclusive_group()
Expand Down
4 changes: 2 additions & 2 deletions phys2cvr/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def check_ext(all_ext, fname, remove=False):
fname : str
The filename to check
remove : bool, optional
Remove the extention from fname if it has one
Remove the extension from fname if it has one
Returns
-------
Expand Down Expand Up @@ -149,7 +149,7 @@ def check_nifti_dim(fname, data, dim=4):
if len(data.shape) < dim:
raise ValueError(
f"{fname} does not seem to be a {dim}D file. "
f"Plase provide a {dim}D nifti file."
f"Please provide a {dim}D nifti file."
)
if len(data.shape) > dim:
LGR.warning(f"{fname} has more than {dim} dimensions. Removing D > {dim}.")
Expand Down
6 changes: 3 additions & 3 deletions versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
`setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI
distributions (and upload multiple independently-installable tarballs).
* Source trees whose main purpose is to contain a C library, but which also
provide bindings to Python (and perhaps other langauges) in subdirectories.
provide bindings to Python (and perhaps other languages) in subdirectories.
Versioneer will look for `.git` in parent directories, and most operations
should get the right version string. However `pip` and `setuptools` have bugs
Expand Down Expand Up @@ -700,7 +700,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 Expand Up @@ -1107,7 +1107,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

0 comments on commit 884ba21

Please sign in to comment.