Wikimedia
Pywikibot: Fix W504 issues across python scripts (I)
Pywikibot is a Python library and collection of scripts that automate work on MediaWiki sites. This task will mainly be to fix W504 errors (line break after binary operator) found in the Pywikibot repository.
Clone Pywikibot from Wikimedia Gerrit: https://gerrit.wikimedia.org/g/pywikibot/core/+/refs/heads/master. Follow steps here: https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/+/refs/heads/master/README.rst.
See full task description here: https://phabricator.wikimedia.org/T207836.
Below are the files with the W504 errors;
./docs/conf.py:287:17: W504 line break after binary operator
./scripts/imagetransfer.py:203:41: W504 line break after binary operator
./scripts/imagetransfer.py:271:29: W504 line break after binary operator
./scripts/imagetransfer.py:272:29: W504 line break after binary operator
./scripts/listpages.py:160:17: W504 line break after binary operator
./scripts/listpages.py:161:17: W504 line break after binary operator
./scripts/nowcommons.py:278:25: W504 line break after binary operator
./scripts/cfd.py:147:21: W504 line break after binary operator
./scripts/cfd.py:153:21: W504 line break after binary operator
./scripts/pagefromfile.py:157:21: W504 line break after binary operator
./scripts/casechecker.py:376:41: W504 line break after binary operator
Task tags
Students who completed this task
zD/Zd1LqRH