8000 feat: add pywho scan for project-wide shadow detection by AhsanSheraz · Pull Request #3 · AhsanSheraz/pywho · GitHub
[go: up one dir, main page]

Skip to content

feat: add pywho scan for project-wide shadow detection - #3

Merged
AhsanSheraz merged 1 commit into
mainfrom
feat/scan-command
Mar 15, 2026
Merged

AhsanSheraz merged 1 commit into
mainfrom
feat/scan-command

Conversation

@AhsanSheraz
@AhsanSheraz AhsanSheraz commented Mar 15, 2026 •
Copy link
Copy Markdown
Owner

Summary

  • Add pywho scan subcommand that recursively scans directories for .py files shadowing stdlib or installed packages
  • Severity levels: HIGH (stdlib) and MEDIUM (installed packages)
  • Smart exclusions: .venv, __pycache__, node_modules, dist, build, etc.
  • --no-installed flag to check stdlib only, --json for machine-readable output
  • Python API via scan_path() with ShadowResult dataclass
  • Revamped README with badges, table of contents, quick-reference command table, and polished formatting
  • Updated docs (usage.md, api.md) with scan documentation
  • Version bumped to 0.3.0

Test plan

  • 16 new tests in test_scanner.py covering stdlib shadows, false positives, single file, CLI integration
  • All 73 tests passing locally
  • CI passes on all platforms (Linux, macOS, Windows) x Python versions

🤖 Generated with Claude Code

Add `pywho scan` subcommand that recursively scans directories for .py
files shadowing stdlib or installed packages. Includes severity levels
(HIGH for stdlib, MEDIUM for installed), smart directory exclusions,
JSON output, and Python API via scan_path(). Revamp README with badges,
table of contents, and quick-reference command table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AhsanSheraz
AhsanSheraz merged commit 1d3256a into main Mar 15, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0