summaryrefslogtreecommitdiff
path: root/docs/source/internal
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-05-10 20:12:17 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-05-10 20:12:17 -0500
commitccadc09a0e2489be41e024a2bfa1a100072af041 (patch)
treef8c96459f223ce4da139fde26804b5a549953ee0 /docs/source/internal
parentadaa47730ee0ef119a9394bf477764fdba3de3a4 (diff)
downloadflake8-ccadc09a0e2489be41e024a2bfa1a100072af041.tar.gz
Add documentation about how we handle pep8 as a plugin
Diffstat (limited to 'docs/source/internal')
-rw-r--r--docs/source/internal/plugin_handling.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/source/internal/plugin_handling.rst b/docs/source/internal/plugin_handling.rst
index b3b9b0e..d4692ce 100644
--- a/docs/source/internal/plugin_handling.rst
+++ b/docs/source/internal/plugin_handling.rst
@@ -83,6 +83,21 @@ Finally, Flake8 has always provided its own plugin shim for Pyflakes. As part
of that we carry our own shim in-tree and now store that in
:mod:`flake8.plugins.pyflakes`.
+Flake8 also registers plugins for pep8. Each check in pep8 requires different
+parameters and it cannot easily be shimmed together like Pyflakes was. As
+such, plugins have a concept of a "group". If you look at our :file:`setup.py`
+you will see that we register pep8 checks roughly like so:
+
+.. code::
+
+ pep8.<check-name> = pep8:<check-name>
+
+We do this to identify that ``<check-name>>`` is part of a group. This also
+enables us to special-case how we handle reporting those checks. Instead of
+reporting each check in the ``--version`` output, we report ``pep8`` and check
+``pep8`` the module for a ``__version__`` attribute. We only report it once
+to avoid confusing users.
+
API Documentation
-----------------