IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
220 stars 115 forks source link

small code updates (using pyupgrade) #847

Closed mathause closed 2 months ago

mathause commented 2 months ago

Please confirm that this PR has done the following:

Adding to RELEASE_NOTES.md (remove section after adding to RELEASE_NOTES.md)

Please add a single line in the release notes similar to the following:

- (#XX)[http://link-to-pr.com] Added feature which does something

Description of PR

And another one with some small changes using pyupgrade

find . -name "*.py" -exec pyupgrade --py310-plus {} \;
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 73.46939% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 95.0%. Comparing base (ddbb88e) to head (7fc3e0e). Report is 13 commits behind head on main.

Files Patch % Lines
pyam/statistics.py 22.2% 7 Missing :warning:
pyam/_style.py 0.0% 1 Missing :warning:
pyam/figures.py 0.0% 1 Missing :warning:
pyam/iiasa.py 87.5% 1 Missing :warning:
pyam/run_control.py 50.0% 1 Missing :warning:
pyam/unfccc.py 0.0% 1 Missing :warning:
pyam/validation.py 50.0% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #847 +/- ## ======================================= - Coverage 95.0% 95.0% -0.1% ======================================= Files 64 63 -1 Lines 6134 6148 +14 ======================================= + Hits 5828 5841 +13 - Misses 306 307 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.