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
To all the folks, who need:
To setup that kind of tool in Pycharm:
File | Settings | Tools | Remote SSH External Tools
see below screen for example configuration:
Arguments: -c "flake8 $(git status -s | grep -E '\.py$' | cut -c 4-) --max-line-lengt=120"
In my case the crucial thing was:
/bin/bash instead of flake8 directly-c "whatever args subcommands etc I need here"For reference:
$(git status -s | grep -E '\.py$' | cut -c 4-) is responsible for passing locations of files with changes according to git version control NOTE: to have your flake8 from virtualenv you might want to specify full path like:
/z/your_virtual_envs/bin/flake8