Run Pylint for all Python files in a directory and all subdirectories

后端 未结 14 2166
眼角桃花
眼角桃花 2021-01-30 19:45

I have

find . -iname \"*.py\" -exec pylint -E {} ;\\

and

FILES=$(find . -iname \"*.py\")
pylint -E $FILES

If

14条回答
  •  鱼传尺愫
    2021-01-30 20:25

    Just pass the directory name to the pylint command. To lint all files in ./server:

    pylint server
    

提交回复
热议问题