Skip to content
This repository was archived by the owner on Nov 14, 2026. It is now read-only.

refactor: split into focused modules (clean code) - #1

Merged
portlek merged 1 commit into
masterfrom
refactor/clean-code
Sep 26, 2026
Merged

portlek merged 1 commit into
masterfrom
refactor/clean-code

Conversation

@portlek

@portlek portlek commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Split the monolithic extractor/service/cli/updater modules into focused, single-responsibility modules with no behavior change. All 204 tests pass.

Changes

  • Extract core: models, text_utils, company_detection, policy_numbers, pdf_io
  • Share infrastructure: records, folder_lock, process_utils, stability, events, version
  • Split updates: versioning, github_source, updating_http, updating_errors, update_service
  • Keep backward-compatible facades: extractor, updater, service, cli preserve public and legacy private imports
  • Simplify WatchService.run, handle_command dispatch, CLI parser and batch/fetch flows
  • Preserve monkeypatch compatibility: service.extract_policy_fast, service.parent_alive, updater.fetch_github_update_info

Verification

  • python -m pytest -q: 204 passed

@portlek portlek changed the title refactor: clean code split refactor: split into focused modules (clean code) Sep 26, 2026
@portlek
portlek merged commit 0c13d6a into master Sep 26, 2026
1 check passed
@portlek
portlek deleted the refactor/clean-code branch September 26, 2026 10:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant