chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.12.0 (#510)
* chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.12.0 * skip PLC0415 Signed-off-by: gruebel <anton.gruebel@gmail.com> --------- Signed-off-by: gruebel <anton.gruebel@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: gruebel <anton.gruebel@gmail.com>
This commit is contained in:
parent
ac95c7a5b7
commit
d21d9db90a
|
|
@ -1,7 +1,7 @@
|
||||||
default_stages: [pre-commit]
|
default_stages: [pre-commit]
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.11.13
|
rev: v0.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ def add_global_handler(event: ProviderEvent, handler: EventHandler) -> None:
|
||||||
with _global_lock:
|
with _global_lock:
|
||||||
_global_handlers[event].append(handler)
|
_global_handlers[event].append(handler)
|
||||||
|
|
||||||
from openfeature.api import get_client
|
from openfeature.api import get_client # noqa: PLC0415
|
||||||
|
|
||||||
_run_immediate_handler(get_client(), event, handler)
|
_run_immediate_handler(get_client(), event, handler)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue