Skip to content

Conversation

@tomjemmett
Copy link
Member

@tomjemmett tomjemmett commented Sep 11, 2025

  • adds linting/format/type checking action
  • adds code coverage action
  • fixes issue with default arguments being called at import time, not function call time

@tomjemmett tomjemmett added enhancement New feature or request priority: should MoSCoW priority labels Sep 11, 2025
@tomjemmett tomjemmett self-assigned this Sep 11, 2025
@tomjemmett tomjemmett added the bug Something isn't working label Sep 11, 2025
- adds linting/format/type checking action
- adds code coverage action
arguments were being called at import time, not at run time. switches to calling the default value functions inside of the methods
Copy link
Member

@yiwen-h yiwen-h left a comment

Choose a reason for hiding this comment

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

This PR does a few different things:

  • Adds actions
  • Makes it so that the default arguments are not evaluated at import
  • Adds additional tests

Could we please also have a corresponding issue for the PR?

Have tested locally - all works as expected. Not evaluating the default arguments at import is useful for other repos e.g. nhp_products using this package

@tomjemmett tomjemmett linked an issue Sep 12, 2025 that may be closed by this pull request
@tomjemmett tomjemmett merged commit 40cf089 into main Sep 12, 2025
4 checks passed
@tomjemmett tomjemmett deleted the add_actions branch September 12, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request priority: should MoSCoW priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

incorrect default arguments

3 participants