Wikimedia

Pywikibot: Fix W504 issues across python scripts (XV)

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 in the README.rst.

See full description of the task here: https://phabricator.wikimedia.org/T207836

Below are the files with the W504 errors you're to fix;

./pywikibot/site_detect.py:108:17: W504 line break after binary operator
./pywikibot/site_detect.py:120:13: W504 line break after binary operator
./pywikibot/site_detect.py:174:30: W504 line break after binary operator
./pywikibot/site_detect.py:205:17: W504 line break after binary operator
./pywikibot/site_detect.py:288:25: W504 line break after binary operator
./pywikibot/family.py:1605:9: W504 line break after binary operator
./pywikibot/family.py:1606:9: W504 line break after binary operator
./pywikibot/family.py:1611:9: W504 line break after binary operator
./pywikibot/family.py:1612:9: W504 line break after binary operator
./pywikibot/family.py:1618:9: W504 line break after binary operator
./pywikibot/family.py:1619:9: W504 line break after binary operator
./pywikibot/family.py:1620:9: W504 line break after binary operator

Task tags

  • python
  • python-pep8
  • pywikibot

Students who completed this task

Nathan

Task type

  • code Code
  • done_all Quality Assurance
close

2018