Skip to content

Commit

Permalink
Merge branch 'dev' into feature/qi2-1060/auth0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythir authored Aug 29, 2024
2 parents bfced84 + c5e1bdc commit 0ef2f25
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 60 deletions.
110 changes: 55 additions & 55 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ qi = "quantuminspire.cli.command_list:app"

[tool.poetry.dependencies]
python = "^3.9"
typer = {extras = ["all"], version = "^0.12.3"}
typer = {extras = ["all"], version = "^0.12.5"}
pydantic = "^2.8.2"
qi-compute-api-client = "^0.33.0"
qxelarator = {version = "^0.7.1", optional = true}
Expand All @@ -44,8 +44,8 @@ mypy = "^1.11"
docformatter = "1.7.5"
pytest-mock = "^3.14.0"
black = "^24.8.0"
pytest-asyncio = "^0.23.8"
ruff = "^0.5.7"
pytest-asyncio = "^0.24.0"
ruff = "^0.6.2"
types-requests = "^2.25.0"
types-oauthlib = "^3.2.0.20240806"
responses = "^0.25.3"
Expand Down
1 change: 1 addition & 0 deletions quantuminspire/cli/command_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def login(
tokens = auth_session.poll_for_tokens()
settings.store_tokens(host_url, tokens)
typer.echo("Login successful!")
typer.echo(f"Using member ID {settings.auths[host].team_member_id}")


@app.command("logout")
Expand Down
2 changes: 0 additions & 2 deletions quantuminspire/util/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ async def _fetch_team_member_id(host: str, access_token: str) -> int:
members = members_page.items
if len(members) == 1:
member_id = members[0].id
typer.echo(f"Using member ID {member_id}")
return cast(int, member_id)

typer.echo("Choose a member ID from the list for project configuration.")
Expand All @@ -189,7 +188,6 @@ async def _fetch_team_member_id(host: str, access_token: str) -> int:
member_id = int(input("Please enter one of the given ids: "))
if member_id not in member_ids:
raise ValueError
typer.echo(f"Using member ID {member_id}")
return cast(int, member_id)
except ValueError:
typer.echo("Invalid input. Please enter a valid id or CTRL + C to cancel.")
Expand Down

0 comments on commit 0ef2f25

Please sign in to comment.