<commit_before>from .core import is_healthcheck


def pytest_configure(config):
    register_healthcheck_marker(config)
    setup_healthcheck_flag(config)


def pytest_collection_modifyitems(session, config, items):
    for item in items:
        if is_healthcheck(item.function):
            item.add_marker("healthcheck")


def pytest_addoption(parser):
    parser.addoption(
        "--healthcheck",
        action="store_true",
        help="run healthchecks.")
<commit_msg>Refs #50 - Pytest items are healthchecks if either function or class is healthcheck (was only function).<commit_after>from .core import is_healthcheck


def pytest_configure(config):
    register_healthcheck_marker(config)
    setup_healthcheck_flag(config)


def pytest_collection_modifyitems(session, config, items):
    for item in items:
        if is_healthcheck(item.cls) or is_healthcheck(item.function):
            item.add_marker("healthcheck")


def pytest_addoption(parser):
    parser.addoption(
        "--healthcheck",
        action="store_true",
        help="run healthchecks.")

{'fraction_non_alphanumeric': 0.09116279069767441, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 3.890909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2195242', 'n_tokens_mistral': 318, 'n_tokens_neox': 314, 'n_words': 69}