From da764d9ab2b37b90c6fe3bda26bbfe888bc0b6e0 Mon Sep 17 00:00:00 2001 From: rmorshea Date: Tue, 6 Jun 2023 23:15:45 -0600 Subject: [PATCH] fix noqas --- src/py/reactpy/reactpy/_warnings.py | 2 +- src/py/reactpy/reactpy/backend/default.py | 2 +- src/py/reactpy/tests/test_core/test_layout.py | 2 +- src/py/reactpy/tests/test_utils.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/py/reactpy/reactpy/_warnings.py b/src/py/reactpy/reactpy/_warnings.py index 678b5f868..c4520604d 100644 --- a/src/py/reactpy/reactpy/_warnings.py +++ b/src/py/reactpy/reactpy/_warnings.py @@ -13,7 +13,7 @@ def warn(*args: Any, **kwargs: Any) -> Any: if TYPE_CHECKING: - warn = _warn # noqa F811 + warn = _warn # noqa: F811 def _frame_depth_in_module() -> int: diff --git a/src/py/reactpy/reactpy/backend/default.py b/src/py/reactpy/reactpy/backend/default.py index eb27ca93b..4dfeb23e8 100644 --- a/src/py/reactpy/reactpy/backend/default.py +++ b/src/py/reactpy/reactpy/backend/default.py @@ -50,7 +50,7 @@ async def serve_development_app( def _default_implementation() -> BackendImplementation[Any]: """Get the first available server implementation""" - global _DEFAULT_IMPLEMENTATION # noqa PLW0603 + global _DEFAULT_IMPLEMENTATION # noqa: PLW0603 if _DEFAULT_IMPLEMENTATION is not None: return _DEFAULT_IMPLEMENTATION diff --git a/src/py/reactpy/tests/test_core/test_layout.py b/src/py/reactpy/tests/test_core/test_layout.py index 3e9a40176..d2e1a8099 100644 --- a/src/py/reactpy/tests/test_core/test_layout.py +++ b/src/py/reactpy/tests/test_core/test_layout.py @@ -384,7 +384,7 @@ def wrapper(*args, **kwargs): @reactpy.component @add_to_live_hooks def Outer(): - nonlocal set_inner_component # noqa PLE0117 + nonlocal set_inner_component inner_component, set_inner_component = reactpy.hooks.use_state( Inner(key="first") ) diff --git a/src/py/reactpy/tests/test_utils.py b/src/py/reactpy/tests/test_utils.py index c764b04af..c71057f15 100644 --- a/src/py/reactpy/tests/test_utils.py +++ b/src/py/reactpy/tests/test_utils.py @@ -24,7 +24,7 @@ def test_basic_ref_behavior(): r = reactpy.Ref() with pytest.raises(AttributeError): - r.current # noqa B018 + r.current # noqa: B018 r.current = 4 assert r.current == 4