-
Notifications
You must be signed in to change notification settings - Fork 2
eli-225 adding back in poetry, updating make and readme #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
423cd57
9db71ad
ba26abc
e02578d
e78e361
e824b25
8185610
3d861a5
b330aa5
ab0ab42
7d1a941
22f1e2d
0018c0b
5961ca7
8a2eb6d
befa248
8b931ff
bc28e02
838ed4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [virtualenvs] | ||
| in-project = true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| [project] | ||
| name = "eligibility-signposting-api-specification" | ||
| version = "0.0.1-alpha" | ||
| description = "TODO" | ||
| authors = [ | ||
| #TODO add authors | ||
| ] | ||
| readme = "README.md" | ||
| requires-python = ">=3.13" | ||
| repository = "https://github.com/NHSDigital/eligibility-signposting-api-specification" | ||
| homepage = "https://digital.nhs.uk/developer/api-catalogue" | ||
| keywords = ["healthcare", "uk", "nhs", "vaccination", "api"] #TODO add additional keywords | ||
| package_mode = false | ||
|
|
||
| [build-system] | ||
| requires = ["poetry-core>=2.0.0,<3.0.0"] | ||
| build-backend = "poetry.core.masonry.api" | ||
|
|
||
| [tool.poetry.dependencies] | ||
| python = "^3.13" | ||
| flask = {extras = ["async"], version = "^3.1.0"} | ||
| httpx = "^0.28.1" | ||
| yarl = "^1.18.3" | ||
| pydantic = "^2.10.6" | ||
| asgiref = "^3.8.1" | ||
| boto3 = "^1.37.3" | ||
| botocore = "^1.37.3" | ||
| eval-type-backport = "^0.2.2" | ||
| mangum = "^0.19.0" | ||
| wireup = "^1.0.1" | ||
| python-json-logger = "^3.3.0" | ||
| fhir-resources = "^8.0.0" | ||
| python-dateutil = "^2.9.0" | ||
| pyhamcrest = "^2.1.0" | ||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
| ruff = "^0.11.0" | ||
| docopt = "^0.6.2" | ||
| jsonpath-rw = "^1.4.0" | ||
| semver = "^3.0.4" | ||
| gitpython = "^3.1.44" | ||
| pytest = "^8.3.4" | ||
| pytest-asyncio = "^0.26.0" | ||
| pytest-cov = "^6.0.0" | ||
| pytest-nhsd-apim = "^5.0.0" | ||
| aiohttp = "^3.11.12" | ||
| awscli = "^1.37.24" | ||
| awscli-local = "^0.22.0" | ||
| polyfactory = "^2.20.0" | ||
| pyright = "^1.1.394" | ||
| brunns-matchers = "^2.9.0" | ||
| localstack = "^4.1.1" | ||
| pytest-docker = "^3.2.0" | ||
| stamina = "^25.1.0" | ||
| pytest-freezer = "^0.4.9" | ||
|
|
||
| [tool.ruff] | ||
| line-length = 120 | ||
| exclude = ["docs/", "scripts/"] | ||
|
|
||
| [tool.ruff.lint] | ||
| select = ["ALL"] | ||
| ignore = ["COM812", "D"] | ||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "src/eligibility_signposting_api/repos/*" = ["ANN401"] | ||
| "tests/*" = ["ANN", "INP", "S101", "S106"] | ||
|
|
||
| [tool.pytest.ini_options] | ||
| log_cli = true | ||
| log_cli_level = "DEBUG" | ||
| log_format = "%(asctime)s %(levelname)s %(message)s" | ||
| log_date_format = "%Y-%m-%d %H:%M:%S" | ||
| asyncio_mode = "auto" | ||
| asyncio_default_fixture_loop_scope = "function" | ||
|
|
||
| [tool.coverage.run] | ||
| relative_files = true | ||
| branch = true | ||
| source = ["sandbox"] | ||
|
|
||
| [tool.coverage.report] | ||
| show_missing = true | ||
| skip_covered = false | ||
| exclude_lines = [ | ||
| "pragma: no cover", | ||
| "if __name__ == .__main__.:", | ||
| "if TYPE_CHECKING:", | ||
| "raise NotImplementedError", | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| $ref: https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/app-level0 | ||
| $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/app-level0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ultimately, I think we should remove any auth from the Sandbox version - but I'm not 100% certain.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't, it requires an API key in the header. I'll remove here and see what the generated specification looks like
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It becomes tricky as we've hardcoded some of the structure in the main spec, and setting an empty value/object/type here fails validation. Best way I can think to do right now is, when we generate the sandbox json file, remove the securityScheme section completely using yq
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the change |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - title: Eligibility Signposting API (Dev Environment) | ||
| grants: | ||
| nhs-login-p9: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - title: Eligibility Signposting API (Pre Production Environment) | ||
| grants: | ||
| nhs-login-p9: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - title: Eligibility Signposting API (Production Environment) | ||
| grants: | ||
| nhs-login-p9: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - title: Eligibility Signposting API (Test Environment) | ||
| grants: | ||
| nhs-login-p9: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| proxy: | ||
| limit: 5 | ||
| timeunit: second |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| proxy: | ||
| limit: 20 | ||
| timeunit: second |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| proxy: | ||
| limit: 5 | ||
| timeunit: second |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| type: external | ||
| url: "TBC" | ||
| healthcheck: /_status | ||
| security: | ||
| type: mtls | ||
| secret: eligibility-signposting-api |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| type: external | ||
| url: "TBC" | ||
| healthcheck: /_status | ||
| security: | ||
| type: mtls | ||
| secret: eligibility-signposting-api |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| type: external | ||
| url: "TBC" | ||
| healthcheck: /_status | ||
| security: | ||
| type: mtls | ||
| secret: eligibility-signposting-api |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| type: hosted | ||
| healthcheck: /_status | ||
| containers: | ||
| - name: eligibility-signposting-api | ||
| image: | ||
| name: eligibility-signposting-api | ||
| tag: latest | ||
| environment: | ||
| LOG_LEVEL: info | ||
| NODE_ENV: production |
Uh oh!
There was an error while loading. Please reload this page.