from _pytest.config.argparsing import Parser def pytest_addoption(parser: Parser) -> None: parser.addoption( "--run-postgres", action="store_true", help="Run tests that require Postgres", ) parser.addoption( "--allow-flaky", action="store_true", help="Allows a number of flaky database tests to fail", )