Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pyupgrade --py36-plus, license year #1050

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

Merged
merged 14 commits into from
Sep 6, 2020
Merged

pyupgrade --py36-plus, license year #1050

merged 14 commits into from
Sep 6, 2020

Conversation

wholmgren
Copy link
Member

@wholmgren wholmgren commented Sep 6, 2020

  • Closes #xxxx
  • I am familiar with the contributing guidelines
  • Tests added
  • Updates entries to docs/sphinx/source/api.rst for API changes.
  • Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

These changes are the result of the following command:

pyupgrade --py36-plus pvlib/[a-z]*.py pvlib/tests/**/*.py docs/**/*.py

The diff looks good to me except for maybe a couple of minor style issues. Let's see what the full test suite says...

@wholmgren wholmgren changed the title pyupgrade --py36-plus pyupgrade --py36-plus, license year Sep 6, 2020
@wholmgren wholmgren added this to the 0.8.0 milestone Sep 6, 2020
@wholmgren
Copy link
Member Author

Ok, I believe we can overlook the remaining coverage issues in forecast.py and merge this.

Copy link
Member

@mikofski mikofski left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! I found a few more strings that could be converted to f-strings. Not sure why pyupgrade didn't catch them, but I tested them and they seem to work

Also wasn't sure where test_get_sky_diffuse_invalid came from, seems not related to this pr.

wholmgren and others added 10 commits September 6, 2020 15:35
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
Co-authored-by: Mark Mikofski <[email protected]>
@wholmgren
Copy link
Member Author

thanks @mikofski I noticed a couple of those and forgot to go through more carefully.

Also wasn't sure where test_get_sky_diffuse_invalid came from, seems not related to this pr.

A pyupgrade change revealed missing coverage.

Copy link
Member

@mikofski mikofski left a comment

Choose a reason for hiding this comment

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

Thanks Will! I'm super happy about this PR for some reason. Maybe it's because I ❤️ f-strings?

@mikofski
Copy link
Member

mikofski commented Sep 6, 2020

okay to merge?

@mikofski mikofski merged commit 766b0ca into pvlib:master Sep 6, 2020
@wholmgren wholmgren deleted the py36 branch September 7, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants