mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Add documentation around plugins and formatters
This commit is contained in:
parent
63b50bc1f4
commit
fe1b628c0f
2 changed files with 129 additions and 0 deletions
16
docs/source/dev/formatters.rst
Normal file
16
docs/source/dev/formatters.rst
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
===========================================
|
||||
Developing a Formatting Plugin for Flake8
|
||||
===========================================
|
||||
|
||||
Flake8 added the ability to develop custom formatting plugins in version
|
||||
3.0.0. Let's write a plugin together:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from flake8.formatting import base
|
||||
|
||||
|
||||
class Example(base.BaseFormatter):
|
||||
"""Flake8's example formatter."""
|
||||
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue