valhallasw created this task.
valhallasw added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Currently, we have a large number of flake8 checks:

Some of these are useful, because they catch bugs before they happen:

Some others purely force stylistic choices on the developer:

For those stylistic choices, we should reconsider which ones we feel are really worth the time wasted in getting them right. A good stylistic rule has a few properties:

  • has a strongly positive effect on readability
  • is easy to get right
  • are easy to fix when they are not right
  • provides clear error messages when this is not the case (preferrably they say what you need to do instead of just telling you something is wrong)

From this list, I would say:

  • pep8: probably OK
  • pydocstyle: OK for requiring documentation, dubious when it gets to requiring a certain phrasing style
  • openstack: might be OK
  • flake8-comprehensions: OK-ish, but error messages are so-so
  • flake8-import-order: no, no, no and no
  • pep8-naming: OK

So I would suggest to:

  • turn off flake8-import-order
  • turn off parts of pydocstyle

and maybe turn off more later, depending on what are pain points for developers.


TASK DETAIL
https://phabricator.wikimedia.org/T166950

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: valhallasw
Cc: Multichill, Xqt, Aklapper, valhallasw, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to