Descriptive flake8 errors in PyCharm

前端 未结 4 666
太阳男子
太阳男子 2021-02-02 12:52

PyCharm does not have a built-in support for flake8 at the moment. But, flake8 can be configured to run as an external tool.

Sometimes, especia

4条回答
  •  佛祖请我去吃肉
    2021-02-02 13:16

    Today i Also face this problem although @alecxe answer is good for one project settings

    If you want to set flake8 globally , you can follow below process

    1. make sure flake8 installed in your project
    2. make sure virtualenv path set in pycharm
    3. configure flake8 as external tool goto file> settings> External Tools > '+'

    configure the path

    Program - The path to the flake8 executable $PyInterpreterDirectory$ is a directory where the Python interpreter of the current project is placed

    Argument- Specifies what files and folders should be checked $FilePath$

    Working directory - Project root directory $ContentRoot$

提交回复
热议问题