Skip to content

Move code into src/ layout, tests into tests/ - #30

Merged
clintmod merged 3 commits into
masterfrom
fix/29-src-layout
Jul 16, 2026
Merged

Move code into src/ layout, tests into tests/#30
clintmod merged 3 commits into
masterfrom
fix/29-src-layout

Conversation

@clintmod

Copy link
Copy Markdown
Owner

Stacked on #28 (retargets to master when it merges).

Pure git mv restructure per #29 — 12 modules + the macprefs entrypoint to src/, 12 test files to tests/ — plus the coordinated reference updates: pytest pythonpath/testpaths, coverage --cov=src, pylint paths, execute_module call sites in tests, formula libexec.install Dir["src/*"], and PYTHONPATH=src in the build script.

Review pass additions: src/macprefs is now linted explicitly (its lack of a .py extension meant it had never been linted — pylint immediately found a consider-using-in on it, fixed here), and the README notes the mise exec -- fallback when mise isn't shell-activated (friction found while dogfooding the contributor bootstrap).

Verified on the branch: rite test 82 passed (coverage over src/, 99%), rite lint clean, rite build full brew install + backup smoke test green.

Closes #29

🤖 Generated with Claude Code

clintmod added 3 commits July 16, 2026 10:32
git mv only; no logic changes. Reference updates:
- pyproject.toml: pytest pythonpath=["src"], testpaths=["tests"]
- Ritefile.yml: --cov=src, pylint src/*.py tests/*.py, python src/publish.py
- macprefs.template.rb: libexec.install Dir["src/*"] (flatten keeps
  sibling imports working in the installed layout)
- ci/scripts/brew-build-test.sh: PYTHONPATH=src for the version import
- tests: execute_module paths now src/macprefs and src/publish.py
  (paths resolve relative to cwd, which is repo root under rite)
…der-using-in finding), document mise activation in README
Base automatically changed from fix/26-modern-dev-tooling to master July 16, 2026 16:56
@clintmod
clintmod merged commit c6cf3ee into master Jul 16, 2026
4 checks passed
@clintmod
clintmod deleted the fix/29-src-layout branch July 16, 2026 16:57
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.

Move code into a src/ layout

1 participant