Skip to content

Add the repository root as the last source folder - #6

Merged
khatchad merged 1 commit into
mainfrom
root-source-folder-last
Oct 1, 2026
Merged

khatchad merged 1 commit into
mainfrom
root-source-folder-last

Conversation

@khatchad

@khatchad khatchad commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

setup.py sits at the repository root, outside the four source folders (src, examples, tests, docs/src). This adds the root as a fifth source folder, listed LAST, so setup.py is covered.

The order matters: a file is named against the first source folder that contains it. With the root first, every module under src/ would be named src.psiz.* rather than psiz.*, which is not how the package imports itself. Listed last, src/psiz/* keeps its psiz.* name.

That order dependence is a tool bug, tracked as ponder-lab/Hybridize-Functions-Refactoring#994, with the engine-side fix in wala/ML#984 (name a script against the most specific source folder containing it). Once that lands, the root's position in this list no longer matters.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LGXxg5uBWoLUajAQUQKchR

setup.py sits at the root, outside every other source folder. Listing the root last covers it while the package under src/ keeps its import name, psiz, rather than src.psiz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGXxg5uBWoLUajAQUQKchR
Copilot AI balanced review requested due to automatic review settings October 1, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused configuration change correctly preserves existing source-path precedence.

Review effort: Balanced
Findings: None

What changed in this PR

Adds the repository root to PyDev’s source paths so setup.py is covered without changing package module names.

Changes:

  • Appends the repository root after the four existing source folders.
File Description
.pydevproject Adds the repository root as the lowest-priority source folder.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@khatchad
khatchad merged commit 5317381 into main Oct 1, 2026
1 check 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