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:
zooqueen
2026-02-20 21:29:31 -08:00
co-authored by Hanzo Dev
parent ae94756bce
commit 0834abe2aa
267 changed files with 12974 additions and 6320 deletions
+1 -1
View File
@@ -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__"]
+4 -4
View File
@@ -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,
)
+5 -5
View File
@@ -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