Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. How to manually setup flake8 as PyCharm external tool
  2.  
  3. File / Settings / Tools / External Tools / Add
  4. Name: Flake8
  5. Program: $PyInterpreterDirectory$/python
  6. Parameters: -m flake8 --max-complexity 10 --ignore E501,C812,I001,I003,I004 $FilePath$
  7. Working directory: $ProjectFileDir$
  8.  
  9. Output Filters / Add
  10. Name: Filter 1
  11. Regular expression to match output:
  12. $FILE_PATH$\:$LINE$\:$COLUMN$\:.*
  13.  
  14. To check source with flake8:
  15. Tools / External Tools / Flake8
  16.  
  17. Can be used with single files as well as with directories, recursively.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement