Skip to content

Commit

Permalink
style: Ruff formatting config updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Dec 9, 2024
1 parent 0bb2cf5 commit c9a774e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ paramiko = "^3.5.0"
mypy = "^1.12.0"
ruff = "^0.7.0"

[tool.ruff]
lint.select = ["C", "E", "F", "I", "W"]
lint.ignore = ["E501"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
12 changes: 6 additions & 6 deletions backend/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import paramiko
from aleph.sdk import AuthenticatedAlephHttpClient
from aleph.sdk.chains.ethereum import ETHAccount
from aleph_message.models import Payment, Chain, PaymentType
from fastapi import FastAPI, HTTPException, UploadFile, File, Form
from aleph_message.models import Chain, Payment, PaymentType
from fastapi import FastAPI, File, Form, HTTPException, UploadFile
from libertai_utils.chains.index import is_signature_valid
from libertai_utils.interfaces.subscription import Subscription
from libertai_utils.utils.crypto import decrypt, encrypt
Expand All @@ -17,13 +17,13 @@
from src.config import config
from src.interfaces.agent import (
Agent,
SetupAgentBody,
AgentPythonPackageManager,
DeleteAgentBody,
UpdateAgentResponse,
GetAgentResponse,
GetAgentSecretResponse,
GetAgentSecretMessage,
AgentPythonPackageManager,
GetAgentSecretResponse,
SetupAgentBody,
UpdateAgentResponse,
)
from src.utils.agent import fetch_agents
from src.utils.message import get_view_agent_secret_message
Expand Down
2 changes: 1 addition & 1 deletion backend/src/utils/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def generate_ssh_key_pair() -> tuple[str, str]:
# Generate public key in OpenSSH format
public_key_str = f"{key.get_name()} {key.get_base64()}"

return private_key_str, public_key_str
return private_key_str, public_key_str

0 comments on commit c9a774e

Please sign in to comment.