Page MenuHomePhabricator

Move bnwikt string replacement data to JSON
Closed, ResolvedPublic

Description

utils.py is needlessly big right now. Also add tests for these.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Move bnwikt string replacement data to JSON, rename performlintreplacements() to delint()toolforge-repos/redminbot!11r4356threplacements-jsonmain
Customize query in GitLab

Event Timeline

Redmin moved this task from Triage to Future Work on the Tool-redminbot board.

r4356th merged https://gitlab.wikimedia.org/toolforge-repos/redminbot/-/merge_requests/11

Move bnwikt string replacement data to JSON, rename performlintreplacements() to delint()

Redmin claimed this task.

For future reference, the linked MR also included a lot of somewhat unrelated refactoring work: changed FIX_API_URL to DELINT_API_URL, performlintreplacements() to delint(), moved delint and the string replacement functions to their own, dedicated modules and changed the CI configuration to only run the relevant test suite when specific files changed.