mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-15 16:10:16 +00:00
detect_gcp_credentials hook
This commit is contained in:
parent
b73acb198e
commit
e0c61d89d0
929 changed files with 311695 additions and 0 deletions
27
.venv/lib/python3.10/site-packages/pluggy/_warnings.py
Normal file
27
.venv/lib/python3.10/site-packages/pluggy/_warnings.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
from typing import final
|
||||
|
||||
|
||||
class PluggyWarning(UserWarning):
|
||||
"""Base class for all warnings emitted by pluggy."""
|
||||
|
||||
__module__ = "pluggy"
|
||||
|
||||
|
||||
@final
|
||||
class PluggyTeardownRaisedWarning(PluggyWarning):
|
||||
"""A plugin raised an exception during an :ref:`old-style hookwrapper
|
||||
<old_style_hookwrappers>` teardown.
|
||||
|
||||
Such exceptions are not handled by pluggy, and may cause subsequent
|
||||
teardowns to be executed at unexpected times, or be skipped entirely.
|
||||
|
||||
This is an issue in the plugin implementation.
|
||||
|
||||
If the exception is unintended, fix the underlying cause.
|
||||
|
||||
If the exception is intended, switch to :ref:`new-style hook wrappers
|
||||
<hookwrappers>`, or use :func:`result.force_exception()
|
||||
<pluggy.Result.force_exception>` to set the exception instead of raising.
|
||||
"""
|
||||
|
||||
__module__ = "pluggy"
|
||||
Loading…
Add table
Add a link
Reference in a new issue