diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-25 09:49:06 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-25 09:49:06 -0500 |
| commit | 14ce512b9a62c1f4652eebc0706f7fe674a423b4 (patch) | |
| tree | 36b45c85f6dbfe2af547cbfa7a56e42fa9330c95 /docs | |
| parent | 87b331c552a6d4ff955e79f19546f3d08e8e52d8 (diff) | |
| download | flake8-14ce512b9a62c1f4652eebc0706f7fe674a423b4.tar.gz | |
Add extra information to plugin dev index
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/dev/index.rst | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/docs/source/dev/index.rst b/docs/source/dev/index.rst index 858ec83..728ae95 100644 --- a/docs/source/dev/index.rst +++ b/docs/source/dev/index.rst @@ -5,14 +5,52 @@ Since |Flake8| 2.0, the |Flake8| tool has allowed for extensions and custom plugins. In |Flake8| 3.0, we're expanding that ability to customize and extend **and** we're attempting to thoroughly document it. Some of the -documentation in this section will reference third-party documentation -to reduce duplication and to point you, the developer, towards -the authoritative documentation for those pieces. +documentation in this section may reference third-party documentation to +reduce duplication and to point you, the developer, towards the authoritative +documentation for those pieces. + +Getting Started +=============== + +To get started writing a |Flake8| :term:`plugin` you first need: + +- An idea for a plugin + +- An available package name on PyPI + +- One or more versions of Python installed + +- A text editor or IDE of some kind + +- An idea of what *kind* of plugin you want to build: + + * Formatter + + * Check + +Once you've gathered these things, you can get started. + +All plugins for |Flake8| must be registered via `entry points`_. In this +section we cover: + +- How to register your plugin so |Flake8| can find it + +- How to make |Flake8| provide your check plugin with information (via + command-line flags, function/class parameters, etc.) + +- How to make a formatter plugin + +- How to write your check plugin so that it works with |Flake8| 2.x and 3.x .. toctree:: + :caption: Plugin Developer Documentation :maxdepth: 2 - cross_compatibility - plugin_parameters registering_plugins + plugin_parameters formatters + cross_compatibility + + +.. _entry points: + https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points |
