mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 08:04:18 +00:00
Fix logic for Notifier.listeners_for
Add tests for proper logic around notifier
This commit is contained in:
parent
222be9ac49
commit
37b92cd4b4
3 changed files with 34 additions and 23 deletions
12
DESIGN.rst
12
DESIGN.rst
|
|
@ -77,6 +77,18 @@ See https://gitlab.com/pycqa/flake8/issues/84
|
|||
|
||||
.. note:: Will probably need a Trie implementation for this
|
||||
|
||||
What we *might* want is for a autofix plugin to register something like
|
||||
|
||||
::
|
||||
|
||||
'flake8.autofix_extension': [
|
||||
'E1 = my_fixer.E1Listener',
|
||||
'E2 = my_fixer.E2Listener',
|
||||
]
|
||||
|
||||
This means that the notifer would need to take an error code like ``E111`` and
|
||||
then notify anything listening for ``E111``, ``E11``, ``E1``, and ``E``.
|
||||
|
||||
.. _reporter-plugins:
|
||||
|
||||
Support for Plugins that Format Output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue