Skip to content

added a note to avoid f-strings in logging#25081

Merged
jklymak merged 5 commits intomatplotlib:mainfrom
muddi900:add/doc-note-fstrings
Mar 6, 2023
Merged

added a note to avoid f-strings in logging#25081
jklymak merged 5 commits intomatplotlib:mainfrom
muddi900:add/doc-note-fstrings

Conversation

@muddi900
Copy link
Copy Markdown
Contributor

PR Summary

As per #25080, a note has been added to the contributing.rst

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

@tacaswell
Copy link
Copy Markdown
Member

@muddi900 Would you also be willing to add an example of how it should be done to the examples?

It is not just fstrings, it is any "pre-computed" formatting that is the problem.

@rcomer rcomer linked an issue Jan 25, 2023 that may be closed by this pull request
@muddi900
Copy link
Copy Markdown
Contributor Author

I'll ammend ot on the next day or so.

@jklymak jklymak marked this pull request as draft January 26, 2023 02:11
@tacaswell tacaswell modified the milestone: v3.8.0 Jan 26, 2023
Comment thread doc/devel/contributing.rst Outdated
Comment thread doc/devel/contributing.rst Outdated
Comment thread doc/devel/contributing.rst Outdated
Comment thread doc/devel/contributing.rst Outdated
@QuLogic
Copy link
Copy Markdown
Member

QuLogic commented Feb 21, 2023

Is this complete? Please mark the PR as Ready for review if so.

@muddi900 muddi900 marked this pull request as ready for review February 22, 2023 04:55
Comment thread doc/devel/contributing.rst Outdated
Comment thread doc/devel/contributing.rst Outdated
@jklymak
Copy link
Copy Markdown
Member

jklymak commented Feb 25, 2023

You are failing a check in pre-commit.ci.

muddi900 and others added 3 commits February 27, 2023 06:53
added code blocks of examples and changed to pre-computed

fixed code-block formatting

More gramar and format fixes
Co-authored-by: Jody Klymak <jklymak@gmail.com>
Co-authored-by: Jody Klymak <jklymak@gmail.com>
Comment thread doc/devel/contributing.rst Outdated
@rcomer
Copy link
Copy Markdown
Member

rcomer commented Mar 5, 2023

pre-commit.ci autofix

@rcomer
Copy link
Copy Markdown
Member

rcomer commented Mar 6, 2023

Docs build has now passed and the section looks like this.

@jklymak jklymak merged commit c0eb43e into matplotlib:main Mar 6, 2023
@jklymak
Copy link
Copy Markdown
Member

jklymak commented Mar 6, 2023

Thanks @muddi900 !

imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
* added a note to avoid f-strings in logging

------

Co-authored-by: Jody Klymak <jklymak@gmail.com>
imgbot Bot pushed a commit to kkipngenokoech/matplotlib that referenced this pull request Apr 19, 2026
* added a note to avoid f-strings in logging

------

Co-authored-by: Jody Klymak <jklymak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Add note in contrib guide admonishing against use of f strings in logs

7 participants