pyupgrade --py36-plus, license year by wholmgren · Pull Request #1050 · pvlib/pvlib-python · GitHub
Skip to content

pyupgrade --py36-plus, license year#1050

Merged
mikofski merged 14 commits into
pvlib:masterfrom
wholmgren:py36
Sep 6, 2020
Merged

pyupgrade --py36-plus, license year#1050
mikofski merged 14 commits into
pvlib:masterfrom
wholmgren:py36

Conversation

@wholmgren

@wholmgren wholmgren commented Sep 6, 2020

Copy link
Copy Markdown
Member
  • 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
Copy Markdown
Member Author

Comment thread pvlib/atmosphere.py Outdated
Comment thread pvlib/location.py Outdated
Comment thread pvlib/modelchain.py Outdated
Comment thread pvlib/modelchain.py Outdated
Comment thread pvlib/pvsystem.py Outdated
Comment thread pvlib/pvsystem.py Outdated
Comment thread pvlib/tests/iotools/test_pvgis.py Outdated
Comment thread pvlib/tracking.py Outdated
Comment thread pvlib/tracking.py Outdated

@mikofski mikofski left a comment

Copy link
Copy Markdown
Member

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 <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
Co-authored-by: Mark Mikofski <bwana.marko@yahoo.com>
@wholmgren

Copy link
Copy Markdown
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.

@mikofski mikofski left a comment

Copy link
Copy Markdown
Member

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

mikofski commented Sep 6, 2020

Copy link
Copy Markdown
Member

@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