Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find and fix typos with codespell #8304

Merged
merged 7 commits into from
May 30, 2024
Merged

Find and fix typos with codespell #8304

merged 7 commits into from
May 30, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Apr 20, 2024

@kmaehashi As discussed elsewhere...

codespell --skip="./docs/source/spelling_wordlist.txt,*.pyx" --write-changes \
--ignore-words-list=alo,alow,ans,bu,ccompiler,clen,commun,coo,fro,fo,indext,mata,matc,mone,nd,nin,nomes,numer,ot,shat,te,twon,ue,wew

cupyx/scipy/sparse/_csc.py Outdated Show resolved Hide resolved
Copy link
Contributor

@grlee77 grlee77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cclauss, IIRC you made this type of PR in the past to PyWavelets and/or scikit-image. I have been a fan of using codespell since that time.

Aside from the COO issue already discussed, I commented on just one other line where the suggestion should not be applied.

@@ -76,7 +76,7 @@ def _make_along_axis_idx(arr_shape, indices, axis):
dest_dims = list(range(axis)) + [None] + \
list(range(axis + 1, indices.ndim))

# build a fancy index, consisting of orthogonal aranges, with the
# build a fancy index, consisting of orthogonal arranges, with the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should not be made. "aranges" is refering to multiple calls to cupy.arange in the loop below.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One option could be to refer to them as just "orthogonal ranges". One might associate "range" with Python's built-in range rather than cupy.arange, but I think the meaning would still be clear enough given the actual code within the loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orthogonal cupy.arange calls

@cclauss cclauss closed this May 20, 2024
@cclauss cclauss deleted the codespell branch May 20, 2024 06:31
@leofang
Copy link
Member

leofang commented May 20, 2024

Hi @cclauss I noticed the PR was closed and the branch was deleted, do you think it's something you still want to push for, or should we take over and revive it?

@cclauss cclauss restored the codespell branch May 20, 2024 16:10
@cclauss cclauss reopened this May 20, 2024
@cclauss
Copy link
Contributor Author

cclauss commented May 20, 2024

@leofang I re-opend if you want to merge or cherry-pick parts.

Copy link
Member

@kmaehashi kmaehashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cclauss, sorry for taking the time to get back to you! I've checked all the changes one by one. Looks great except for a few commented!

cupy/testing/_loops.py Outdated Show resolved Hide resolved
cupyx/scipy/sparse/_coo.py Outdated Show resolved Hide resolved
cupyx/scipy/sparse/_csr.py Outdated Show resolved Hide resolved
cupyx/scipy/special/_logsumexp.py Outdated Show resolved Hide resolved
@kmaehashi kmaehashi added the to-be-backported Pull-requests to be backported to stable branch label May 29, 2024
Co-authored-by: Kenichi Maehashi <939877+kmaehashi@users.noreply.github.com>
kmaehashi
kmaehashi previously approved these changes May 29, 2024
Copy link
Member

@kmaehashi kmaehashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@kmaehashi
Copy link
Member

/test mini

@kmaehashi kmaehashi enabled auto-merge May 29, 2024 09:44
auto-merge was automatically disabled May 29, 2024 09:49

Head branch was pushed to by a user without write access

@kmaehashi kmaehashi merged commit 6eb9fdd into cupy:main May 30, 2024
12 checks passed
@kmaehashi kmaehashi added this to the v14.0.0a1 milestone May 30, 2024
@chainer-ci
Copy link
Member

@kmaehashi Failed to backport automatically.


Not cleanly cherry-picked

kmaehashi added a commit to kmaehashi/cupy that referenced this pull request May 30, 2024
Find and fix typos with codespell
@cclauss cclauss deleted the codespell branch May 30, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:document Documentation prio:medium to-be-backported Pull-requests to be backported to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants