Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AntonioMarsella/88d261ab70993c587b5313bcb784f213 to your computer and use it in GitHub Desktop.
Save AntonioMarsella/88d261ab70993c587b5313bcb784f213 to your computer and use it in GitHub Desktop.
pycodestyle check multiple files
# Import needed package
import pycodestyle
# Create a StyleGuide instance
style_checker = pycodestyle.StyleGuide()
# Run PEP 8 check on multiple files
result = style_checker.check_files(['nay_pep8.py', 'yay_pep8.py'])
# Print result of PEP 8 style check
print(result.messages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment