-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
tox -e linttox -e lint
lint: commands[0]> ruff check
warning: Selection `DOC` has no effect because preview is not enabled.
RUF059 Unpacked variable `preferred` is never used
--> tests/test_algorithm/test_cg.py:650:21
|
648 | cf_graph_5, preferred, eliminated = merge_pw(cf_graph_4, W, W @ D)
649 | cf_graph_6, preferred, eliminated = merge_pw(cf_graph_5, D @ -D, D)
650 | cf_graph_7, preferred, eliminated = merge_pw(cf_graph_6, Y, Y @ -D)
| ^^^^^^^^^
651 | self.assert_graph_equal(figure_11a.graph, cf_graph_2)
652 | self.assert_graph_equal(figure_11b.graph, cf_graph_6)
|
help: Prefix it with an underscore or any other dummy variable pattern
RUF059 Unpacked variable `eliminated` is never used
--> tests/test_algorithm/test_cg.py:650:32
|
648 | cf_graph_5, preferred, eliminated = merge_pw(cf_graph_4, W, W @ D)
649 | cf_graph_6, preferred, eliminated = merge_pw(cf_graph_5, D @ -D, D)
650 | cf_graph_7, preferred, eliminated = merge_pw(cf_graph_6, Y, Y @ -D)
| ^^^^^^^^^^
651 | self.assert_graph_equal(figure_11a.graph, cf_graph_2)
652 | self.assert_graph_equal(figure_11b.graph, cf_graph_6)
|
help: Prefix it with an underscore or any other dummy variable pattern
RUF059 Unpacked variable `actual_graph3` is never used
--> tests/test_algorithm/test_id_star.py:113:9
|
111 | self.assertEqual({Y @ x: y, X: +x, Z: -z, D: -d}, new_event)
112 |
113 | actual_graph3, actual_event3 = make_counterfactual_graph(
| ^^^^^^^^^^^^^
114 | graph=NxMixedGraph.from_edges(directed=[(D, Z), (Z, Y)]),
115 | event={Z @ -d: -z, Z: +z, D: -d},
|
help: Prefix it with an underscore or any other dummy variable pattern
RUF059 Unpacked variable `actual_graph3` is never used
--> tests/test_algorithm/test_original_id_star.py:111:9
|
109 | self.assertEqual({Y @ x: y, X: +x, Z: -z, D: -d}, new_event)
110 |
111 | actual_graph3, actual_event3 = make_counterfactual_graph(
| ^^^^^^^^^^^^^
112 | graph=NxMixedGraph.from_edges(directed=[(D, Z), (Z, Y)]),
113 | event={Z @ -d: -z, Z: +z, D: -d},
|
help: Prefix it with an underscore or any other dummy variable pattern
Found 4 errors.
No fixes available (4 hidden fixes can be enabled with the `--unsafe-fixes` option).
lint: exit 1 (0.12 seconds) /Users/zuck016/Projects/CausalInference/y0-causal-inference/y0> ruff check pid=70032
lint: FAIL code 1 (0.14=setup[0.02]+cmd[0.12] seconds)
evaluation failed :( (0.53 seconds)Metadata
Metadata
Assignees
Labels
No labels