Open edoardob90 opened 2 days ago
Just an example of the formatting where I think Ruff delivers a better final result:
explain_button.on_click(
lambda b, ipytest_result=self.ipytest_result, exc=result.exception, out=explanation_output, test_name=test_name: self.on_click_explain(
ipytest_result, exc, out, test_name
)
)
explain_button.on_click(
lambda b,
ipytest_result=self.ipytest_result,
exc=result.exception,
out=explanation_output,
test_name=test_name: self.on_click_explain(
ipytest_result, exc, out, test_name
)
)
A suggestion: why not replacing
flake8
and others pre-commit hooks (likeisort
,pyupgrade
) with Ruff, which can do almost everything? Including a slightly better formatting than Black.Resources: