File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -338,14 +338,16 @@ the ``lint`` extra for IDOM:
338338
339339.. code-block :: bash
340340
341- pip install idom[stable,lint]
341+ pip install flake8- idom-hooks
342342
343- Once installed running ``flake8 `` on your could will start catching errors:
343+ Once installed running, ``flake8 `` on your code will start catching errors. For example :
344344
345345.. code-block :: bash
346346
347347 flake8 my_idom_elements.py
348348
349+ Might produce something like the following output:
350+
349351.. code-block :: text
350352
351353 ./my_idom_elements:10:8 ROH102 hook 'use_effect' used inside if statement
Original file line number Diff line number Diff line change @@ -9,6 +9,3 @@ matplotlib
99htm
1010pyalect
1111tagged
12-
13- # extra=lint
14- flake8-idom-hooks
Original file line number Diff line number Diff line change 11black
22flake8
33pep8-naming
4- flake8-idom-hooks
4+ flake8-idom-hooks >=0.2.0
Original file line number Diff line number Diff line change @@ -748,7 +748,8 @@ async def test_use_memo_with_stored_args_is_empty_tuple_after_args_are_none():
748748 @element_hook .capture
749749 def ElementWithMemo ():
750750 value = idom .hooks .use_memo (
751- lambda : next (iter_values ), args_used_in_memo .current
751+ lambda : next (iter_values ),
752+ args_used_in_memo .current , # noqa: ROH202
752753 )
753754 used_values .append (value )
754755 return idom .html .div ()
You can’t perform that action at this time.
0 commit comments