Skip to content

Remove unused clearsky._is_leap_year (closes #2768)#2813

Open
dgowdaan-cmyk wants to merge 3 commits into
pvlib:mainfrom
dgowdaan-cmyk:remove-is-leap-year
Open

Remove unused clearsky._is_leap_year (closes #2768)#2813
dgowdaan-cmyk wants to merge 3 commits into
pvlib:mainfrom
dgowdaan-cmyk:remove-is-leap-year

Conversation

@dgowdaan-cmyk

@dgowdaan-cmyk dgowdaan-cmyk commented Jul 7, 2026

Copy link
Copy Markdown

Closes #2768

Removes the unused internal function clearsky._is_leap_year. Verified via repo-wide search that it has no other references anywhere in the codebase. Per maintainer (@cwhanse), no deprecation cycle or new test required — see comment.

  • Closes Remove dead code clearsky._is_leap_year #2768
  • I am familiar with the contributing guidelines
  • I attest that all AI-generated material has been vetted for accuracy and is in compliance with the pvlib license
  • Tests added
  • Updates entries in docs/sphinx/source/reference 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 (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

@dgowdaan-cmyk

Copy link
Copy Markdown
Author

@cwhanse This is ready for review whenever you get a chance. Summary of the change:

  • Removed clearsky._is_leap_year (unused, verified via repo-wide search — no other references in the codebase)
  • Updated the whatsnew entry under Maintenance
  • No deprecation cycle or new tests added, per your comment on Remove dead code clearsky._is_leap_year #2768

Let me know if anything else is needed on my end


Maintenance
~~~~~~~~~~~
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`XXXX`)

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.

Suggested change
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`XXXX`)
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`2813`)

Comment on lines +46 to +50

Contributors
~~~~~~~~~~~~

* Darshan Gowda (:ghuser:`dgowdaan-cmyk`)

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.

Suggested change
Contributors
~~~~~~~~~~~~
* Darshan Gowda (:ghuser:`dgowdaan-cmyk`)

The heading is four lines below. Please move your ID to that list.

@cwhanse cwhanse added this to the v0.15.3 milestone Jul 7, 2026
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.

Remove dead code clearsky._is_leap_year

2 participants