Merge pull request #47 from DaLuSt/claude/fix-main-auto-push-ZglfM Restructure project into src layout with proper Python package Moves all Python source into src/redditcleaner/ and introduces a single pyproject.toml that replaces the three separate requirements.txt files and pytest.ini. Key changes: - src/redditcleaner/ — new package root - utils.py, drive_upload.py — shared modules (moved from root) - cli/comment_cleaner.py — was commentCleaner.py (snake_case rename) - cli/post_cleaner.py — was PostCleaner.py#49
Conversation
Auto-merge: testing → main (run #1)
Moves all Python source into src/redditcleaner/ and introduces a
single pyproject.toml that replaces the three separate requirements.txt
files and pytest.ini.
Key changes:
- src/redditcleaner/ — new package root
- utils.py, drive_upload.py — shared modules (moved from root)
- cli/comment_cleaner.py — was commentCleaner.py (snake_case rename)
- cli/post_cleaner.py — was PostCleaner.py
- ci/weekly_cleanup.py — was weekly_cleanup.py; removes duplicate
_with_retry() (now imported from utils)
- web/app.py — was web/app.py; removes sys.path hack,
uses LOG_DIR env var for log file paths
- pyproject.toml — replaces requirements.txt (root/web/tests)
with optional extras: drive, web, dev;
defines CLI entry points
- All tests updated: no more sys.path manipulation; all import/patch
strings use full redditcleaner.* dotted paths
- GitHub Actions: pip install lines use pip install -e ".[dev/drive]";
weekly-cleanup run command updated to python -m redditcleaner.ci.weekly_cleanup
https://claude.ai/code/session_01YbWdZzfzmkn5sqW3ByjUB7
Restructure project into src layout with proper Python package
Moves all Python source into src/redditcleaner/ and introduces a
single pyproject.toml that replaces the three separate requirements.txt
files and pytest.ini.
Key changes:
- src/redditcleaner/ — new package root
- utils.py, drive_upload.py — shared modules (moved from root)
- cli/comment_cleaner.py — was commentCleaner.py (snake_case rename)
- cli/post_cleaner.py — was PostCleaner.py
- ci/weekly_cleanup.py — was weekly_cleanup.py; removes duplicate
_with_retry() (now imported from utils)
- web/app.py — was web/app.py; removes sys.path hack,
uses LOG_DIR env var for log file paths
- pyproject.toml — replaces requirements.txt (root/web/tests)
with optional extras: drive, web, dev;
defines CLI entry redditcleaner.ci.weekly_cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.