Skip to content

Update README, API, and tests for new features and version bump to 1.2.0#127

Merged
cloneofghosts merged 3 commits into
masterfrom
new-api-updates
Oct 13, 2025
Merged

Update README, API, and tests for new features and version bump to 1.2.0#127
cloneofghosts merged 3 commits into
masterfrom
new-api-updates

Conversation

@cloneofghosts

Copy link
Copy Markdown
Owner
  • Update flags block for new items
  • Allow for auto units as the API supports it now
  • Update tests for API and responses updates
  • Support the extraVars query string
  • Update README for new query parameter
  • Remove check version workflow since it never worked

Fix #126

@cloneofghosts cloneofghosts added the enhancement New feature or request label Oct 13, 2025
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @cloneofghosts, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces several enhancements to the Pirate Weather Python wrapper, primarily focusing on API feature parity and improved data handling. It adds support for new query parameters and response fields from the underlying API, updates the default unit system, and refines the test suite to ensure robustness and accuracy with these changes. The package version is also incremented to reflect these new capabilities.

Highlights

  • API Enhancements: Introduced support for the extraVars query parameter, allowing additional data like stationPressure to be requested from the Pirate Weather API.
  • Default Units Change: The default unit of measurement for API requests has been updated from 'us' to 'auto' for better flexibility, reflecting changes in the underlying API.
  • New Data Fields: The forecast data model (pirateweather/models.py) now includes processTime, ingestVersion, and nearestCity attributes to reflect new data available from the Pirate Weather API.
  • Test Suite Improvements: Added new tests for extraVars functionality, updated existing tests to reflect API changes (e.g., flags block, extend data length), and improved test setup for API key handling and mock responses.
  • Version Bump: The package version has been updated from 1.1.2 to 1.2.0 to signify these new features and improvements.
  • Documentation Update: The README.md has been updated to reflect the new extraVars parameter and the change in default units, ensuring users are aware of the latest capabilities.
  • CI Workflow Removal: The non-functional 'check version' workflow has been removed from the continuous integration setup.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/check-version.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several valuable updates, including support for the extraVars parameter, setting units to auto by default, and expanding the flags data. The tests have also been improved by making fixture paths more robust and skipping end-to-end tests when an API key is not available.

I've found one issue regarding how optional URL parameters are constructed, which I've detailed in a comment in pirateweather/api.py. This is a pre-existing issue that the new extraVars parameter has inherited. I've also left comments in the test files on how to adjust the tests after applying the suggested fix.

Overall, great work on adding these new features!

Comment thread pirateweather/api.py Outdated
Comment thread tests/test_pirateweather.py
Comment thread tests/test_pirateweather.py
@cloneofghosts

Copy link
Copy Markdown
Owner Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request is a solid update that adds new features, improves the test suite's robustness, and bumps the project version. The changes to support auto units and the extraVars parameter are well-implemented. My review includes a few suggestions to align the new code with Python's PEP 8 naming conventions, which will improve the overall consistency and maintainability of the codebase.

Comment thread pirateweather/api.py
Comment thread pirateweather/models.py
Comment thread tests/test_pirateweather.py
@cloneofghosts cloneofghosts merged commit 10f61e4 into master Oct 13, 2025
7 checks passed
@cloneofghosts cloneofghosts deleted the new-api-updates branch October 13, 2025 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support new flags items

1 participant