def excluded(filename):
    """
    Check if options.exclude contains a pattern that matches filename.
    """
basename = os.path.basename(filename)
for pattern in options.exclude:
    if fnmatch(basename, pattern):
        return True
как использовать опцию исключения с pep8.py