Created
June 6, 2020 12:36
-
-
Save AntonioMarsella/88d261ab70993c587b5313bcb784f213 to your computer and use it in GitHub Desktop.
pycodestyle check multiple files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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