Tuesday, August 1, 2017

How to use pep8 to check trailing white spaces in files

Install pep8
sudo pip install pep8
Then run the following command
pep8 --select=W291,W293 --filename=*.yml *
The above command will check trailing white spaces and lines with only white spaces in the files ending with .yml in the current and sub directories.