Skip to content

Conversation

@fastfedora
Copy link

Modules were being resolved relative to each file's grandparent directory, causing the same file to appear under different module names (e.g., 'auth' vs 'workspace.auth'). This led to false positives in scattered functionality detection where imported functions were counted as local definitions.

This PR adds _find_project_root to detect the actual project root by scanning upwards for project indicators (pyproject.toml, setup.py, etc.) and resolves all module names relative to this consistent root.

Trailing spaces mess up diffs, so my editor is configured to remove them upon saving. To ensure good clean diffs in the commits that change the code of this project, this commit removes trailing spaces, mostly from blank lines but also from some code lines.
Modules were being resolved relative to each file's grandparent directory, causing the same file to appear under different module names (e.g., 'auth' vs 'workspace.auth'). This led to false positives in scattered functionality detection where imported functions were counted as local definitions.

This commit adds `_find_project_root` to detect the actual project root by scanning upwards for project indicators (pyproject.toml, setup.py, etc.) and resolves all module names relative to this consistent root.
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.

1 participant