I have
find . -iname \"*.py\" -exec pylint -E {} ;\\
and
FILES=$(find . -iname \"*.py\")
pylint -E $FILES
If
My one cent
find . -type f -name "*.py" | xargs pylint
How does it work?
find
finds all files ends with py
and pass to xargs
, xargs
runs pylint
command on each file.
NOTE: You can give any argument to pylint
command as well.
EDIT:
According to doc we can use
pylint mymodule.py
pylint directory/mymodule.py
number 2 will work if directory is a python package (i.e. has an __init__.py
file or it is an implicit namespace package) or if “directory” is in the python path.