This repository contains some file watchers for PyCharm I've found useful.
To use these file watchers, the active Python environment (e.g. project-specific virtual environment)
should have black
and isort
installed. The file watchers will try to run the black
and isort
binaries in the current interpreter directory ($PyInterpreterDirectory$/black
and $PyInterpreterDirectory$/isort
).
- Download the
watchers.xml
file - Open Preferences > File Watchers and click Import
- Select
watchers.xml
- Click Apply to save the changes
The file watchers should execute the next time the a Python file is saved. For security purposes, PyCharm will ask you to trust the file watchers the first time they are triggered.