import pytest


def pytest_addoption(parser):
    parser.addoption(
        "--no-docker",
        action="store_true",
        default=False,
        help="Skip tests that require Docker.",
    )


@pytest.fixture(scope="session")
def no_docker(request):
    return request.config.getoption("--no-docker")
