Remove instance/ from tracking, fix ruff lint errors
Security: - Remove instance/.secret_key and instance/stegasoo.db from git - Add instance/ to .gitignore (was only ignoring frontends/web/instance/) Lint fixes: - Remove unused imports in temp_storage.py (os, shutil) - Sort imports and fix f-string placeholders in cli.py 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -69,6 +69,7 @@ scripts/*
|
|||||||
!scripts/validate-release.sh
|
!scripts/validate-release.sh
|
||||||
|
|
||||||
# Web UI auth database and SSL certs
|
# Web UI auth database and SSL certs
|
||||||
|
instance/
|
||||||
frontends/web/instance/
|
frontends/web/instance/
|
||||||
frontends/web/certs/
|
frontends/web/certs/
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ It does NOT touch instance/ (auth database) or any other directories.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
6a7378172fc0ec37143720f09a4ca34e83ec2409893aa8cd79ace5b78a64276c
|
|
||||||
Binary file not shown.
@@ -723,10 +723,10 @@ def info(ctx, full):
|
|||||||
|
|
||||||
# Check for DCT support
|
# Check for DCT support
|
||||||
try:
|
try:
|
||||||
from .dct_steganography import HAS_SCIPY, HAS_JPEGIO
|
from .dct_steganography import HAS_JPEGIO, HAS_SCIPY
|
||||||
HAS_DCT = HAS_SCIPY and HAS_JPEGIO
|
has_dct = HAS_SCIPY and HAS_JPEGIO
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_DCT = False
|
has_dct = False
|
||||||
|
|
||||||
# Check service status
|
# Check service status
|
||||||
service_status = "unknown"
|
service_status = "unknown"
|
||||||
@@ -765,7 +765,7 @@ def info(ctx, full):
|
|||||||
channel_fingerprint = None
|
channel_fingerprint = None
|
||||||
channel_source = None
|
channel_source = None
|
||||||
try:
|
try:
|
||||||
from .channel import get_channel_key, get_channel_fingerprint, get_channel_status
|
from .channel import get_channel_fingerprint, get_channel_key, get_channel_status
|
||||||
key = get_channel_key()
|
key = get_channel_key()
|
||||||
if key:
|
if key:
|
||||||
channel_fingerprint = get_channel_fingerprint(key)
|
channel_fingerprint = get_channel_fingerprint(key)
|
||||||
@@ -816,7 +816,7 @@ def info(ctx, full):
|
|||||||
"version": __version__,
|
"version": __version__,
|
||||||
"service": service_status,
|
"service": service_status,
|
||||||
"url": service_url,
|
"url": service_url,
|
||||||
"dct_support": HAS_DCT,
|
"dct_support": has_dct,
|
||||||
"channel": {
|
"channel": {
|
||||||
"fingerprint": channel_fingerprint,
|
"fingerprint": channel_fingerprint,
|
||||||
"source": channel_source,
|
"source": channel_source,
|
||||||
@@ -846,11 +846,11 @@ def info(ctx, full):
|
|||||||
|
|
||||||
# Service status
|
# Service status
|
||||||
if service_status == "active":
|
if service_status == "active":
|
||||||
click.echo(f" Service: \033[32m● running\033[0m")
|
click.echo(" Service: \033[32m● running\033[0m")
|
||||||
if service_url:
|
if service_url:
|
||||||
click.echo(f" URL: {service_url}")
|
click.echo(f" URL: {service_url}")
|
||||||
elif service_status == "inactive":
|
elif service_status == "inactive":
|
||||||
click.echo(f" Service: \033[31m○ stopped\033[0m")
|
click.echo(" Service: \033[31m○ stopped\033[0m")
|
||||||
else:
|
else:
|
||||||
click.echo(f" Service: \033[33m? {service_status}\033[0m")
|
click.echo(f" Service: \033[33m? {service_status}\033[0m")
|
||||||
|
|
||||||
@@ -859,10 +859,10 @@ def info(ctx, full):
|
|||||||
masked = f"{channel_fingerprint[:4]}••••••••{channel_fingerprint[-4:]}"
|
masked = f"{channel_fingerprint[:4]}••••••••{channel_fingerprint[-4:]}"
|
||||||
click.echo(f" Channel: {masked}")
|
click.echo(f" Channel: {masked}")
|
||||||
else:
|
else:
|
||||||
click.echo(f" Channel: \033[33mpublic\033[0m")
|
click.echo(" Channel: \033[33mpublic\033[0m")
|
||||||
|
|
||||||
# DCT
|
# DCT
|
||||||
dct_status = "\033[32m✓ enabled\033[0m" if HAS_DCT else "\033[31m✗ disabled\033[0m"
|
dct_status = "\033[32m✓ enabled\033[0m" if has_dct else "\033[31m✗ disabled\033[0m"
|
||||||
click.echo(f" DCT: {dct_status}")
|
click.echo(f" DCT: {dct_status}")
|
||||||
|
|
||||||
# System info (if --full)
|
# System info (if --full)
|
||||||
|
|||||||
Reference in New Issue
Block a user