mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-26 11:49:36 +00:00
style: auto-fix ruff lint and format for Python 3.12
Run ruff check --fix and ruff format across the repo to fix ~495 auto-fixable lint errors (mostly I001 import sorting) and reformat 225 files to match the py312 target. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
__version__ = "0.1.0"
|
||||
|
||||
from .installer import install, uninstall, get_binary_path, is_installed
|
||||
from .installer import install, uninstall, is_installed, get_binary_path
|
||||
|
||||
__all__ = ["install", "uninstall", "get_binary_path", "is_installed", "__version__"]
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
"""CLI for hanzo-node installer and runner."""
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import subprocess
|
||||
|
||||
import click
|
||||
|
||||
from . import __version__
|
||||
from .installer import (
|
||||
install,
|
||||
uninstall,
|
||||
is_installed,
|
||||
get_binary_path,
|
||||
get_installed_version,
|
||||
install,
|
||||
is_installed,
|
||||
uninstall,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
"""Cross-platform binary installer for hanzo-node."""
|
||||
|
||||
import os
|
||||
import platform
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
import stat
|
||||
import shutil
|
||||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
import platform
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
@@ -260,7 +260,7 @@ def install(force: bool = False, version: str | None = None) -> Path:
|
||||
# Check if in PATH
|
||||
install_dir = str(get_install_dir())
|
||||
if install_dir not in os.environ.get("PATH", ""):
|
||||
print(f"\n add to PATH: export PATH=\"{install_dir}:$PATH\"")
|
||||
print(f'\n add to PATH: export PATH="{install_dir}:$PATH"')
|
||||
|
||||
return binary_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user