How to use the doc8.parser.ParsedFile function in doc8

To help you get started, we’ve selected a few doc8 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 PyCQA / doc8 / doc8 / parser.py View on Github external
def parse(filename, encoding=None, default_extension=""):
    if not os.path.isfile(filename):
        raise IOError(errno.ENOENT, "File not found", filename)
    return ParsedFile(filename, encoding=encoding, default_extension=default_extension)