How to use the pydocstyle.violations.ErrorRegistry function in pydocstyle

To help you get started, we’ve selected a few pydocstyle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jayclassless / tidypy / src / tidypy / tools / pydocstyle.py View on Github external
def get_all_codes(cls):
        return [
            (error.code, error.short_desc)
            for group in ErrorRegistry.groups
            for error in group.errors
        ]
github life4 / flakehell / flakehell / _logic / _extractors.py View on Github external
def extract_flake8_docstrings() -> Dict[str, str]:
    from pydocstyle.violations import ErrorRegistry

    codes = dict()
    for group in ErrorRegistry.groups:
        for error in group.errors:
            codes[error.code] = error.short_desc
    return codes