utils.py is needlessly big right now. Also add tests for these.
Description
Description
Details
Details
Related Changes in GitLab:
| Title | Reference | Author | Source Branch | Dest Branch | |
|---|---|---|---|---|---|
| Move bnwikt string replacement data to JSON, rename performlintreplacements() to delint() | toolforge-repos/redminbot!11 | r4356th | replacements-json | main |
Event Timeline
Comment Actions
r4356th opened https://gitlab.wikimedia.org/toolforge-repos/redminbot/-/merge_requests/11
Move bnwikt string replacement data to JSON
Comment Actions
r4356th merged https://gitlab.wikimedia.org/toolforge-repos/redminbot/-/merge_requests/11
Move bnwikt string replacement data to JSON, rename performlintreplacements() to delint()
Comment Actions
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.