Skip to content

Bug/is user code#60

Merged
KaykCaputo merged 2 commits into
KaykCaputo:masterfrom
waldo121:bug/is-user-code
May 14, 2026
Merged

Bug/is user code#60
KaykCaputo merged 2 commits into
KaykCaputo:masterfrom
waldo121:bug/is-user-code

Conversation

@waldo121
Copy link
Copy Markdown
Contributor

@waldo121 waldo121 commented May 11, 2026

Summary

Fix bug in is_user_code

Related Issue

Closes #44

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • CLI behavior change

What Changed

In is_user_code:

  • normalized paths
  • Add handling for special paths such as:
  1. virtual environments
  2. stdlib
  3. symlinked code
  • new unit tests for tracer.py

Validation

  • Run test
pytest tests/test_tracer.py

Checklist

  • The code follows style conventions.
  • I added unit tests for the new functionality.
  • CI (GitHub Actions) is green.
  • I updated documentation/README when needed.

@waldo121 waldo121 marked this pull request as ready for review May 11, 2026 20:31
@KaykCaputo KaykCaputo requested review from AndreXP1 and KaykCaputo May 11, 2026 21:18
@KaykCaputo KaykCaputo merged commit 132bc88 into KaykCaputo:master May 14, 2026
5 checks passed
@waldo121 waldo121 deleted the bug/is-user-code branch May 14, 2026 20:46
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.

[Bug]: _is_user_code path-prefix heuristic produces false positives

3 participants