Skip to content

Instantly share code, notes, and snippets.

@drew2a
Last active October 8, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drew2a/83efb21eeec3080a9067cdf14aca7d5f to your computer and use it in GitHub Desktop.
Save drew2a/83efb21eeec3080a9067cdf14aca7d5f to your computer and use it in GitHub Desktop.
1. Install `flack8` and `import-order` plugin:
Note: Below all examples imply the use of venv for the project.
```
python3 -m pip install flake8
python3 -m pip install flake8-import-order
```
2. Add `File Watcher`:
Tools -> File Watchers
```
Program: $PyInterpreterDirectory$/flake8
Arguments: $FileDir$/$FileName$ --application-import-names=tribler_core,tribler_gui,tribler_common,run_tribler,experiment
Output Filters: $FILE_PATH$:$LINE$:$COLUMN$: $MESSAGE$
```
3. Enable `File Watchers` problems
@drew2a
Copy link
Author

drew2a commented Oct 8, 2020

Add File Watcher:

image

Enable File Watchers:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment