Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
import pytest
from lightning.pytorch.utilities.testing import _runif_reasons
def RunIf(**kwargs):
reasons, marker_kwargs = _runif_reasons(**kwargs)
return pytest.mark.skipif(condition=len(reasons) > 0, reason=f"Requires: [{' + '.join(reasons)}]", **marker_kwargs)