From 28b539bcd933146fab34d52765b6fab5167b8a05 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Wed, 7 Jan 2026 14:28:07 -0500 Subject: [PATCH] Remove instance/ from tracking, fix ruff lint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitignore | 1 + frontends/web/temp_storage.py | 2 -- instance/.secret_key | 1 - instance/stegasoo.db | Bin 36864 -> 0 bytes src/stegasoo/cli.py | 18 +++++++++--------- 5 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 instance/.secret_key delete mode 100644 instance/stegasoo.db diff --git a/.gitignore b/.gitignore index 7258461..b151eb1 100644 --- a/.gitignore +++ b/.gitignore @@ -69,6 +69,7 @@ scripts/* !scripts/validate-release.sh # Web UI auth database and SSL certs +instance/ frontends/web/instance/ frontends/web/certs/ diff --git a/frontends/web/temp_storage.py b/frontends/web/temp_storage.py index fb48440..6426876 100644 --- a/frontends/web/temp_storage.py +++ b/frontends/web/temp_storage.py @@ -14,8 +14,6 @@ It does NOT touch instance/ (auth database) or any other directories. """ import json -import os -import shutil import time from pathlib import Path from threading import Lock diff --git a/instance/.secret_key b/instance/.secret_key deleted file mode 100644 index 49670ca..0000000 --- a/instance/.secret_key +++ /dev/null @@ -1 +0,0 @@ -6a7378172fc0ec37143720f09a4ca34e83ec2409893aa8cd79ace5b78a64276c \ No newline at end of file diff --git a/instance/stegasoo.db b/instance/stegasoo.db deleted file mode 100644 index 9acae0df6e7407c64823c1f32d1b6d734729115f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36864 zcmeI)J#6A;7zc0@E`)r5yPVwg?j%=2x*&1~h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>#zAXH<~Y@{suvV5?kDpD%qF18h8FQb8Iv3Www*tg)UX^#Anu#is) z@(=P?@_X`U@>}vL`4#yE`HB8|m9>U_LjVF0fB*y_009U<00Izz00bbgV7_M>Uh%Wf zo9_%i*k;Yt>AL>7zHy6x&b)ZGb-`-BZPG7}Oj*s;tZ|jVru8zBzZ2RI76?E90uX=z z1Rwwb2tWV=5P$##Zj!*PNxMj(Kfj>ZasU4&B^Jj50SG_<0uX=z1Rwwb2tWV=H%;J0 z-T$A{U@YXx>GS_TkiU>WktgKW7z diff --git a/src/stegasoo/cli.py b/src/stegasoo/cli.py index 8674399..327c242 100644 --- a/src/stegasoo/cli.py +++ b/src/stegasoo/cli.py @@ -723,10 +723,10 @@ def info(ctx, full): # Check for DCT support try: - from .dct_steganography import HAS_SCIPY, HAS_JPEGIO - HAS_DCT = HAS_SCIPY and HAS_JPEGIO + from .dct_steganography import HAS_JPEGIO, HAS_SCIPY + has_dct = HAS_SCIPY and HAS_JPEGIO except ImportError: - HAS_DCT = False + has_dct = False # Check service status service_status = "unknown" @@ -765,7 +765,7 @@ def info(ctx, full): channel_fingerprint = None channel_source = None 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() if key: channel_fingerprint = get_channel_fingerprint(key) @@ -816,7 +816,7 @@ def info(ctx, full): "version": __version__, "service": service_status, "url": service_url, - "dct_support": HAS_DCT, + "dct_support": has_dct, "channel": { "fingerprint": channel_fingerprint, "source": channel_source, @@ -846,11 +846,11 @@ def info(ctx, full): # Service status if service_status == "active": - click.echo(f" Service: \033[32m● running\033[0m") + click.echo(" Service: \033[32m● running\033[0m") if service_url: click.echo(f" URL: {service_url}") elif service_status == "inactive": - click.echo(f" Service: \033[31m○ stopped\033[0m") + click.echo(" Service: \033[31m○ stopped\033[0m") else: 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:]}" click.echo(f" Channel: {masked}") else: - click.echo(f" Channel: \033[33mpublic\033[0m") + click.echo(" Channel: \033[33mpublic\033[0m") # 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}") # System info (if --full)