Align standards with the rest of the codebase#358
Align standards with the rest of the codebase#358lispandfound wants to merge 46 commits intomasterfrom
Conversation
Summary of ChangesHello @lispandfound, 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 represents a comprehensive effort to modernize and streamline the codebase. It focuses on removing legacy components, adopting contemporary development standards, and enhancing code quality through improved type hinting and documentation. The changes aim to make the project more maintainable, consistent, and easier to develop against, aligning it with current best practices in Python software engineering. Highlights
Ignored Files
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This is a substantial and impressive pull request that significantly modernizes the codebase. The deletion of dead code, transition to pyproject.toml for dependency management, and widespread improvements in type hinting and documentation are all excellent changes that will greatly enhance maintainability. The code is cleaner, more robust, and adheres to modern Python standards. I've found one minor issue regarding the use of ParamSpec for type hinting, which I've detailed in a specific comment. Overall, this is a high-quality contribution.
|
@copilot Add test cases covering explicit raise statements in any module in the package that is not omitted in coverage in |
|
@lispandfound I've opened a new pull request, #359, to work on those changes. Once the pull request is ready, I'll request review from you. |
* Initial plan * Add test coverage for explicit raise statements Co-authored-by: lispandfound <12835929+lispandfound@users.noreply.github.com> * Add comprehensive test coverage for geo module Co-authored-by: lispandfound <12835929+lispandfound@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lispandfound <12835929+lispandfound@users.noreply.github.com>
|
@copilot Add basic tests for all the omitted modules listed in the pyproject.toml except the deprecated modules |
|
@lispandfound I've opened a new pull request, #360, to work on those changes. Once the pull request is ready, I'll request review from you. |
quartile correction is implicit in arctan2
4d5a99b
All sensible, I reckon. |
|
After talking with @sungeunbae I am going to split this into two PRs:
This should make it easier to review. Actually maybe three:
|
|
Closed in favour of the broken up strategy. |

This PR deletes a lot of dead code used by the old workflow, deprecates some modules still used in gmhazard and cybershake investigation,
and reformats and reorganise the rest to comply with modern standards, i.e.