Assign missing codes to PyFlakes messages

Some PyFlakes messages weren't covered by unique messages, making them
impossible to select/ignore. This is now fixed.

To ensure we don't regress in the future, a test has been added that fails if
there's any uncovered messages.
This commit is contained in:
Lukasz Langa 2016-11-27 17:42:00 -08:00
parent b8ce1334d0
commit 2f1338c342
4 changed files with 85 additions and 18 deletions

View file

@ -6,6 +6,9 @@ You can view the `3.3.0 milestone`_ on GitLab for more details.
- Fix problem where hooks should only check \*.py files. (See also
`GitLab#268`_)
- Added unique error codes for all missing PyFlakes messages (14 new
codes, see all :ref:`Error / Violation Codes <error_codes>`)
.. links
.. _3.3.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/16