-
-
Notifications
You must be signed in to change notification settings - Fork 7
Updated pagination to allow transaction id #91
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
Merged
petermcd
merged 2 commits into
main
from
89-since-can-be-an-object-id-as-well-as-a-datetime
Nov 2, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Publish to PyPI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| pypi-publish: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - "3.10" | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: UV Build | ||
| run: uv build | ||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: UV | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| uv: | ||
| name: python | ||
| runs-on: ubuntu-latest | ||
| permissions: read-all | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - "3.11" | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Set up Python | ||
| run: uv python install | ||
| - name: pyTest | ||
| run: uv run pytest tests | ||
| - name: Ruff (check) | ||
| run: uv run ruff check | ||
| - name: Ruff (format) | ||
| run: uv run ruff format --diff --check | ||
| - name: Ty | ||
| run: uv run ty check | ||
| #- name: Troml | ||
| # run: uv run troml check | ||
| - name: Run SonarQube | ||
| uses: sonarsource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 | ||
| env: | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
| SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,29 @@ | ||
| """Code to handle the second stage of authentication.""" | ||
|
|
||
| import sys | ||
|
|
||
| from monzo.authentication import Authentication | ||
| from monzo.exceptions import MonzoAuthenticationError, MonzoServerError | ||
|
|
||
| client_id = '' # Client ID obtained when creating a Monzo client | ||
| client_secret = '' # Client secret obtained when creating a Monzo client | ||
| redirect_uri = 'http://127.0.0.1/monzo' # URL requests via Monzo will be redirected in a browser | ||
| state = '' # State random string created when creating the Monzo URL (generated in step 1 and appended to the URL) | ||
| code = '' # Authorization code from Monzo (this will be in the redirected URL after clicking the link from step 1) | ||
| client_id = "" # Client ID obtained when creating a Monzo client | ||
| client_secret = "" # Client secret obtained when creating a Monzo client | ||
| redirect_uri = "http://127.0.0.1/monzo" # URL requests via Monzo will be redirected in a browser | ||
| state = "" # State random string created when creating the Monzo URL (generated in step 1 and appended to the URL) | ||
| code = "" # Authorization code from Monzo (this will be in the redirected URL after clicking the link from step 1) | ||
|
|
||
| monzo = Authentication(client_id=client_id, client_secret=client_secret, redirect_url=redirect_uri) | ||
| try: | ||
| monzo.authenticate(authorization_token=code, state_token=state) | ||
| except MonzoAuthenticationError: | ||
| print('State code does not match') | ||
| print("State code does not match") | ||
| sys.exit(1) | ||
| except MonzoServerError: | ||
| print('Monzo Server Error') | ||
| print("Monzo Server Error") | ||
| sys.exit(1) | ||
|
|
||
| # The following 3 items should be stored for future requests | ||
| print(f"access_token = '{monzo.access_token}'") | ||
| print(f'expiry = {monzo.access_token_expiry}') | ||
| print(f"expiry = {monzo.access_token_expiry}") | ||
| print(f"refresh_token = '{monzo.refresh_token}'") | ||
|
|
||
| # Now authorize access from the alert in the Monzo app |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.