<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Doit task definitions."""

DOIT_CONFIG = {
    'default_tasks': [
        'flake8',
        'mypy',
        'pydocstyle',
        'sphinx',
    ],
    'continue': True,
    'verbosity': 1,
    'num_process': 4,
    'par_type': 'thread',
}


def task_flake8():  # type: ignore
    """Run flake8 check."""
    return {
        'actions': ['flake8 wdom setup.py'],
    }


def task_mypy():   # type: ignore
    """Run mypy check."""
    return {
        'actions': ['mypy wdom'],
    }


def task_pydocstyle():   # type: ignore
    """Run docstyle check."""<commit_msg>Add doit cleanup<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Doit task definitions."""

DOIT_CONFIG = {
    'default_tasks': [
        'flake8',
        'mypy',
        'pydocstyle',
        'sphinx',
    ],
    'continue': True,
    'verbosity': 1,
    'num_process': 4,
    'par_type': 'thread',
}


def task_cleanup():  # type: ignore
    """Cleanup project."""
    return {
        'actions': ['make clean'],
    }


def task_flake8():  # type: ignore
    """Run flake8 check."""
    return {
        'actions': ['flake8 wdom setup.py'],
    }


def task_mypy():   # type: ignore
    """Run mypy check."""
    return {
        'actions': ['mypy wdom'],
    }


def task_pydocstyle():   # type: ignore
    """Run docstyle check."""
{'fraction_non_alphanumeric': 0.18903318903318903, 'fraction_numerical': 0.011544011544011544, 'mean_word_length': 2.286729857819905, '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': '2685916', 'n_tokens_mistral': 501, 'n_tokens_neox': 481, 'n_words': 113}