mirror of
https://github.com/PyCQA/flake8.git
synced 2026-06-29 16:50:45 +00:00
Document config handling for plugin option actions
This commit is contained in:
parent
ee03327c82
commit
515d28d24b
1 changed files with 7 additions and 0 deletions
|
|
@ -109,6 +109,13 @@ Each of these options works individually or can be combined. Let's look at a
|
|||
couple examples from |Flake8|. In each example, we will have
|
||||
``option_manager`` which is an instance of |OptionManager|.
|
||||
|
||||
.. note::
|
||||
|
||||
Values read from configuration files do not go through :mod:`argparse`
|
||||
``action`` handlers. If an option needs the same custom transformation for
|
||||
both command-line and configuration values, prefer ``type=`` for that
|
||||
transformation, or use the |Flake8|-specific normalizers documented above.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
option_manager.add_option(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue