Skip to content

Conversation

@williamjameswillis
Copy link
Contributor

@williamjameswillis williamjameswillis commented Dec 12, 2025

Description

See https://nhsd-jira.digital.nhs.uk/browse/GPCAPIM-190 for details.

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • Exceptions/Exclusions to coding standards (e.g. #noqa or #NOSONAR) are included within this Pull Request.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@williamjameswillis williamjameswillis marked this pull request as ready for review December 15, 2025 15:07
@williamjameswillis williamjameswillis requested a review from a team as a code owner December 15, 2025 15:07
Copy link

@Vox-Ben Vox-Ben left a comment

Choose a reason for hiding this comment

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

Two minor comments worth having a think about before approving.

@Vox-Ben
Copy link

Vox-Ben commented Dec 16, 2025

👍 from me but I can't do formal approval!

@williamjameswillis williamjameswillis changed the title poetry repo approach to consuming common GPCAPIM-190 - Poetry dependency approach to consuming code from common repo Dec 16, 2025
Copy link
Collaborator

@nhsd-jack-wainwright nhsd-jack-wainwright left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a couple very minor questions.


# Load environment variables from .env file in the workspace root
# find_dotenv searches upward from current directory for .env file
load_dotenv(find_dotenv(usecwd=True))
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does this method behave if no .env file is provided such as within CI for example? Does it simply continue without a .env loaded relying on the values being loaded as environment variables?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Are the additional arguments to the load_dotenv function here required also as I think the default behaviour is to search upward for a .env file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just tested it out to make sure and it returns an empty string so when the tests run they fail with:

ValueError: BASE_URL environment variable is not set.

which is what we want right?

Copy link
Contributor Author

@williamjameswillis williamjameswillis Dec 16, 2025

Choose a reason for hiding this comment

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

and yeh good spot i have removed that param

tested it out and works the same without it

@sonarqubecloud
Copy link

@williamjameswillis williamjameswillis merged commit 9d2dd14 into main Dec 16, 2025
52 checks passed
@williamjameswillis williamjameswillis deleted the feature/GPCAPIM-190_import_common_repo_poetry_dep branch December 16, 2025 17:04
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.

3 participants