Skip to content

Normalize names to snake_case and clean up repository - #271

Merged
MrIbrahem merged 6 commits into
mainfrom
z
Aug 24, 2026
Merged

MrIbrahem merged 6 commits into
mainfrom
z

Conversation

@MrIbrahem

Copy link
Copy Markdown
Member

No description provided.

Refactor for naming consistency and repository cleanup:
- Rename many functions/variables to snake_case (e.g. submitAPI→submit_api, Get_MwClient_Site→get_mwclient_site, Claim_API_str→claim_api_str, Labels_API→labels_api, Delete_claim→delete_claim, ViewsData→views_data, Cat_Depth→cat_depth, etc.) and update all imports/call sites.
- Rename td_core/fix_user_pages/del.py → del_records.py and update docs/toolforge job entries.
- Remove legacy wprefs.bots.replace_except module and its tests.
- Extend pyproject.toml excludes/ignore (skip src1 and common cache/build paths).
Purpose: improve code consistency, maintainability, and tool scanning behavior.
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 35830aca-a26b-4b65-8fce-aef2b8506db1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MrIbrahem MrIbrahem left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Review summary

Large mechanical refactor: function/variable names normalized to snake_case, one file renamed (del.pydel_records.py), an unused module + its tests deleted, and tooling excludes added. Rewrites are consistent and ruff check src/ is clean except for the module-name issue below. However, the rename is incomplete for one module, which breaks the documented run command and the docs, and there are a few stale/committed environment-specific config items.

Verdict: 💬 Comment (forced — you're the PR author; GitHub does not allow APPROVE/REQUEST_CHANGES on your own PR). Underlying assessment: 🔴 blocking issue found (see inline).

Title

Title is accurate and clear — "Normalize names to snake_case and clean up repository" correctly describes both halves of the change. No change needed.

Highlights

  • Function/parameter renames are applied consistently; no leftover PascalCase call sites in src/ (verified by grep + ruff).
  • src/newapi/__init__.py import reshuffle resolves correctly (function_timer via the utils/ package, AskBot/HandleErrors via api_utils, MainPage via pages).
  • Deletion of the unused local replace_except module and its two test files is consistent — those tests only imported the deleted module, so no orphaned tests remain.

Issues found

  • 🔴 Blocking: 1 — incomplete rename of Medicine_articles.py (see inline).
  • 🟡 Suggestions: 3 — stale del_records.py docstring command, stale CLAUDE.md reference to a deleted module, and machine-specific path exclusions committed to pyproject.toml.

Cross-cutting notes

  • Stale command in del_records.py: that file was renamed from del.pydel_records.py, but its docstring still says core8/pwb.py td_core/fix_user_pages/del. Update it to td_core/fix_user_pages/del_records. (Not left as an inline comment because a 100%-similarity rename has no diff hunk to anchor to.)
  • src1/ (a duplicate of src/) is committed to the repo and this PR adds it to the tooling excludes. That duplication is pre-existing tech debt worth addressing separately; the added exclusions here are consistent with that intent, just flagging the broader smell.
  • The big new ignore = [...] block in pyproject.toml largely duplicates the existing exclude list — consider collapsing it.

Comment thread src/md_core/updates/medicine_articles.py
Comment thread docs/UNUSED_FILES_REPORT.md
Comment thread CLAUDE.md Outdated
Comment thread pyproject.toml
@MrIbrahem
MrIbrahem merged commit 13d87ad into main Aug 24, 2026
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.

1 participant