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:
338
338
339
339
.. code-block :: bash
340
340
341
- pip install idom[stable,lint]
341
+ pip install flake8- idom-hooks
342
342
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 :
344
344
345
345
.. code-block :: bash
346
346
347
347
flake8 my_idom_elements.py
348
348
349
+ Might produce something like the following output:
350
+
349
351
.. code-block :: text
350
352
351
353
./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
9
9
htm
10
10
pyalect
11
11
tagged
12
-
13
- # extra=lint
14
- flake8-idom-hooks
Original file line number Diff line number Diff line change 1
1
black
2
2
flake8
3
3
pep8-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():
748
748
@element_hook .capture
749
749
def ElementWithMemo ():
750
750
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
752
753
)
753
754
used_values .append (value )
754
755
return idom .html .div ()
You can’t perform that action at this time.
0 commit comments