Pylint to show only warnings and errors

后端 未结 2 627
温柔的废话
温柔的废话 2021-01-31 08:31

I would like to use pylint to check my code but I am only interested in error and warning levels. Is there a way to do that in command line or in pylintrc?

I am not inte

2条回答
  •  难免孤独
    2021-01-31 09:04

    > python -m pylint --errors-only script_to_validate.py
    No config file found, using default configuration
    ************* Module script_to_validate
    E:  7,10: Module 'cv2' has no 'imread' member (no-member)
    E:  8,15: Module 'cv2' has no 'threshold' member (no-member)
    

    My settings is Python2.7.6 32 bit & pylint 1.6.4

提交回复
热议问题