Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MNT: Update pre-commit hooks#24196

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

matthewfeickert
Copy link
Contributor

@matthewfeickertmatthewfeickert commentedOct 17, 2022
edited
Loading

PR Summary

Update thecodespell pre-commit hook, and while doing so also update theflake8 pre-commit hook.

Note that this PR would eventually be done by the quarterly update, and so feel free to close if you'd prefer to wait for that, but this takes care of additional updates now.

Follow up PR to PR#22809.

Closes#24086

PR Checklist

Tests and Styling

  • [N/A] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [N/A] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • [N/A] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

Copy link
ContributorAuthor

@matthewfeickertmatthewfeickert left a comment

Choose a reason for hiding this comment

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

Summary of why each of these changes is applied:

@@ -4,13 +4,18 @@ ba
cannotation
coo
curvelinear
dedented
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Use in

dedented docstring; additional replacements can by given in *doc_sub*.

is reasonable so adding to ignore.

@@ -4,13 +4,18 @@ ba
cannotation
coo
curvelinear
dedented
falsy
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Falsy is how Python spells it, so adding.

flate
hax
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Use in

fig, (vax,hax)=plt.subplots(1,2,figsize=(12,6))

for "horizontal axis" is reasonable, so added. However, if it would be preferable to make the example variables more explicit and verbose I can edit them instead.

hist
inh
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Use in

inl,inb,inw,inh=self._boxin.bounds

for "invalid height" is reasonable, so added.

nd
oly
sur
resizeable
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Use in

artist resizeable, moveable, highlightable, and selectable as desired

is a valid spelling, and so adding to ignore file.

sur is removed as added to thecodespell dictionary inv2.2.0. c.f.codespell-project/codespell#2300

@matthewfeickert
Copy link
ContributorAuthor

As this is a follow up to PR#22809, then tagging@oscargus,@greglucas,@jklymak, and@QuLogic for possible reviewers.

Copy link
Member

@oscargusoscargus left a comment

Choose a reason for hiding this comment

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

Looks good! Replaces#24086?

@matthewfeickert
Copy link
ContributorAuthor

matthewfeickert commentedOct 17, 2022
edited
Loading

Looks good! Replaces#24086?

oh woops! I missed this, sorry@oscargus. Yes, I can either add to the PR body that this will close it or if it would be preferred we can port the additional updates andcodespell changes from here over to that PR — your call.

@oscargus
Copy link
Member

To me it seems like just closing#24086 when this is merged would be the way to go.
(Unless the pre-commit-ci-bot thinks it is a bad idea for some unknown reason...)

@matthewfeickert
Copy link
ContributorAuthor

matthewfeickert commentedOct 17, 2022
edited
Loading

That's totally fine! The pre-commit.ci bot doesn't care at all. I'll just be better in the future about checking for those PRs before opening another one. I've updated the PR body to close PR#24086 automatically now.

* github.com/pycqa/flake8: v4.0.1 → v5.0.4* github.com/codespell-project/codespell: v2.1.0 → v2.2.2
* Use 'name' to additionally avoid codespell failure.
Ignore instances of:* 'dedented', 'resizeable'* 'falsy' for Falsy in Python* 'hax' for horizontal axis* 'inh' for invalid heightRemove ignore of 'sur' as it is in codespell's dictionary as of v2.2.0.   - c.f.https://github.com/codespell-project/codespell/releases/tag/v2.2.0
@QuLogicQuLogic merged commitaaa5129 intomatplotlib:mainOct 20, 2022
@QuLogicQuLogic added this to thev3.7.0 milestoneOct 20, 2022
@matthewfeickertmatthewfeickert deleted the mnt/update-pre-commit-hooks branchOctober 20, 2022 06:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.7.0
Development

Successfully merging this pull request may close these issues.

3 participants
@matthewfeickert@oscargus@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp