§
    øyIfú  ã                  ó�   — U d Z ddlmZ ddlmZmZmZ ddlZdZ ededef         ¬¦  «        Z	 ej
        e¦  «        Zd	ed
<   dZdS )a¶  
tox uses `pluggy <https://pluggy.readthedocs.io/en/stable/>`_ to customize the default behavior. It provides an
extension mechanism for plugin management by calling hooks.

Pluggy discovers a plugin by looking up for entry-points named ``tox``, for example in a pyproject.toml:

.. code-block:: toml

    [project.entry-points.tox]
    your_plugin = "your_plugin.hooks"

Therefore, to start using a plugin, you solely need to install it in the same environment tox is running in and it will
be discovered via the defined entry-point (in the example above, tox will load ``your_plugin.hooks``).

A plugin is created by implementing extension points in the form of hooks. For example the following code snippet would
define a new ``--magic`` command line interface flag the user can specify:

.. code-block:: python

    from tox.config.cli.parser import ToxParser
    from tox.plugin import impl


    @impl
    def tox_add_option(parser: ToxParser) -> None:
        parser.add_argument("--magic", action="store_true", help="magical flag")

You can define such hooks either in a package installed alongside tox or within a ``toxfile.py`` found alongside your
tox configuration file (root of your project).
é    )Úannotations)ÚAnyÚCallableÚTypeVarNÚtoxÚ_F.)ÚboundzCallable[[_F], _F]Úimpl)ÚNAMEr
   )Ú__doc__Ú
__future__r   Útypingr   r   r   Úpluggyr   r   ÚHookimplMarkerr
   Ú__annotations__Ú__all__© ó    úG/var/www/piapp/venv/lib/python3.11/site-packages/tox/plugin/__init__.pyú<module>r      sš   ððð ð ð> #Ð "Ð "Ð "Ð "Ð "à )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à €€€à€à€WˆT˜ # s (Ô+Ð,Ñ,Ô,€Ø0˜6Ô0°Ñ6Ô6€Ð 6Ð 6Ð 6Ñ 6ð€€€r   