Skip to content

🕵️‍♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.

fix(ci): update tests for show_all, add mypy type annotations and rich to lint workflows

Kaif46341a60b7f8
diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml
index 14bbfa6..464a563 100644
--- a/.github/workflows/lint-pr.yml
+++ b/.github/workflows/lint-pr.yml
@@ -25,7 +25,7 @@ jobs:
- name: Install linters
run: |
python -m pip install --upgrade pip
- pip install httpx curl_cffi colorama types-colorama
+ pip install httpx curl_cffi colorama types-colorama rich
pip install ruff==0.15.22 mypy
- name: Run ruff
diff --git a/.github/workflows/lint-push.yml b/.github/workflows/lint-push.yml
index 91d8788..9b8d5e7 100644
--- a/.github/workflows/lint-push.yml
+++ b/.github/workflows/lint-push.yml
@@ -26,7 +26,7 @@ jobs:
- name: Install linters
run: |
python -m pip install --upgrade pip
- pip install httpx curl_cffi colorama types-colorama
+ pip install httpx curl_cffi colorama types-colorama rich
pip install ruff==0.15.22 mypy
- name: Run ruff
diff --git a/tests/test_result.py b/tests/test_result.py
index d90f9f1..f27cf97 100644
--- a/tests/test_result.py
+++ b/tests/test_result.py
@@ -287,8 +287,8 @@ def test_get_output_color_and_icon_per_status():
assert Result.skipped().get_output_icon() == "[~]"
-def test_show_only_found_filters_non_taken(capsys):
- conf = ScanConfig(only_found=True)
+def test_show_default_filters_non_taken(capsys):
+ conf = ScanConfig()
Result.available(site_name="HiddenSite").show(conf)
assert capsys.readouterr().out == ""
@@ -297,6 +297,13 @@ def test_show_only_found_filters_non_taken(capsys):
assert "VisibleSite" in capsys.readouterr().out
+def test_show_all_displays_non_taken(capsys):
+ conf = ScanConfig(show_all=True)
+
+ Result.available(site_name="VisibleSite").show(conf)
+ assert "VisibleSite" in capsys.readouterr().out
+
+
def test_extra_update_skips_none_and_blank_values():
res = Result.available()
res.update(extra={"empty_str": " ", "none_val": None, "kept": "value"})
diff --git a/user_scanner/core/email_orchestrator.py b/user_scanner/core/email_orchestrator.py
index ae26ad5..1f1093c 100644
--- a/user_scanner/core/email_orchestrator.py
+++ b/user_scanner/core/email_orchestrator.py
@@ -188,7 +188,7 @@ def run_email_category_batch(
async def _run_email_full_batch_async(email: str, configs: ScanConfig) -> List[Result]:
categories = load_categories(True, configs.no_nsfw)
all_results = []
- printed_cats = set()
+ printed_cats: Set[str] = set()
# 1. Pre-spawn all tasks for all categories (global concurrency)
category_tasks = []