DOC: Repair doc/source/merging.rst flake8 issues
Repairs flake8 issues, removes exclusion from ``setup.cfg``.

- [x] closes #24179 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
