Wikimedia

Pywikibot: Fix W504 issues across python scripts (XVI)

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.

Below are the files with the W504 errors;

./pywikibot/__init__.py:578:21: W504 line break after binary operator
./pywikibot/date.py:387:21: W504 line break after binary operator
./pywikibot/date.py:388:21: W504 line break after binary operator
./pywikibot/tools/formatter.py:154:30: W504 line break after binary operator
./pywikibot/tools/__init__.py:1433:30: W504 line break after binary operator
./pywikibot/tools/__init__.py:1434:30: W504 line break after binary operator
./pywikibot/tools/__init__.py:1437:30: W504 line break after binary operator
./pywikibot/tools/__init__.py:1518:17: W504 line break after binary operator
./pywikibot/userinterfaces/terminal_interface_unix.py:64:21: W504 line break after binary operator
./pywikibot/userinterfaces/terminal_interface_unix.py:65:21: W504 line break after binary operator
./pywikibot/comms/threadedhttp.py:156:21: W504 line break after binary operator
./pywikibot/comms/threadedhttp.py:174:29: W504 line break after binary operator

Task tags

  • python
  • python-pep8
  • pywikibot

Students who completed this task

Mateusz Hurnik

Task type

  • code Code
  • done_all Quality Assurance
close

2018