Skip to content

Split the monolith into typed modules - #152

Merged
D-VR merged 28 commits into
masterfrom
refactor-the-monolith
Jul 3, 2026
Merged

D-VR merged 28 commits into
masterfrom
refactor-the-monolith

Conversation

@D-VR

@D-VR D-VR commented Jul 3, 2026 •

Copy link
Copy Markdown
Collaborator

Breaks the ~3200-line __main__.py into ~20 focused modules (auth, Moodle API, opencast/sciebo, sync handlers, downloader, cache, config, ...) wired through a SyncContext and free functions, instead of a single huge Class. Adds a typed Config and requests.Session, with mypy in strict mode. Previous behavior is preserved.

It's flatter then the structure I envisioned in #97 and scaled down in scope to only the things that syncMyMoodle currently does (so no Auth interfaces etc yet).

This closes #52 #97

@D-VR D-VR added the maintenance Chore or refactor label Jul 3, 2026
@D-VR
D-VR force-pushed the refactor-the-monolith branch from eb22c96 to b278998 Compare July 3, 2026 22:07
@D-VR
D-VR merged commit 658a597 into master Jul 3, 2026
4 checks passed
@D-VR
D-VR deleted the refactor-the-monolith branch July 3, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Chore or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite/Refactor scanForLinks

1 participant