Skip to content

Commit

Permalink
formatted + mypy conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Martinez authored and Alejandro Martinez committed May 18, 2024
1 parent 163eecf commit 6d21fc6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
5 changes: 4 additions & 1 deletion giza/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from giza.cli.commands.endpoints import deploy
from giza.cli.commands.models import app as models_app
from giza.cli.commands.prove import prove
from giza.cli.commands.reset_password import request_reset_password_token, reset_password
from giza.cli.commands.reset_password import (
request_reset_password_token,
reset_password,
)
from giza.cli.commands.users import app as users_app
from giza.cli.commands.verify import verify
from giza.cli.commands.version import check_version
Expand Down
6 changes: 5 additions & 1 deletion giza/cli/commands/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
from giza.cli.schemas.agents import AgentCreate, AgentList, AgentUpdate
from giza.cli.utils import echo
from giza.cli.utils.exception_handling import ExceptionHandler
from giza.cli.utils.misc import get_ape_accounts, get_parameters_from_str, load_json_file
from giza.cli.utils.misc import (
get_ape_accounts,
get_parameters_from_str,
load_json_file,
)

app = typer.Typer()

Expand Down
4 changes: 1 addition & 3 deletions giza/cli/commands/reset_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ def reset_password(
if token is None:
token = prompt_for_input("Please enter your reset token 🎟️")

new_password = prompt_for_input(
"Please enter your new password 🔑", hide_input=True
)
new_password = prompt_for_input("Please enter your new password 🔑", hide_input=True)
confirm_password = prompt_for_input(
"Please confirm your new password 🔑", hide_input=True
)
Expand Down
4 changes: 1 addition & 3 deletions giza/cli/frameworks/cairo.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ def verify(
while True:
current_job: Job = client.get(job.id, params={"kind": JobKind.VERIFY})
if current_job.status == JobStatus.COMPLETED:
live.update(
echo.format_message("Verification job is successful ✅")
)
live.update(echo.format_message("Verification job is successful ✅"))
break
elif current_job.status == JobStatus.FAILED:
live.update(
Expand Down
4 changes: 1 addition & 3 deletions giza/cli/frameworks/ezkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ def verify(
while True:
current_job: Job = client.get(job.id, params={"kind": JobKind.VERIFY})
if current_job.status == JobStatus.COMPLETED:
live.update(
echo.format_message("Verification job is successful ✅")
)
live.update(echo.format_message("Verification job is successful ✅"))
break
elif current_job.status == JobStatus.FAILED:
live.update(
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ ignore = [
"C901", # too complex
]

[tool.mypy]
namespace_packages = true
explicit_package_bases = true

# Bumpversion configuration
[tool.poetry_bumpversion.file."giza/__init__.py"]

Expand Down

0 comments on commit 6d21fc6

Please sign in to comment.