Instructions on integrating Pipsync into PyCharm.
Enable Pipsync to run every time your Pipfile.lock
is modified.
-
In PyCharm's menu go to
PyCharm -> Appearance & Behavior -> Scopes
and click"+"
: -
Label the new scope ("Pipfile" is used in the screenshot").
-
Select the
Pipfile.lock
file and clickInclude
. -
Click
Apply
to save your changes.
-
Install Pipsync and copy the path to its installation:
% which pipsync /Library/Frameworks/Python.framework/Versions/3.8/bin/pipsync
-
In PyCharm's menu go to
PyCharm -> Preferences -> Tools -> File Watchers
and click"+"
: -
Set the
File Type
toAny
(the only file in scope isPipfile.lock
). -
Set the
Scope
to the custom scope created in the previous section (e.g. the "Pipfile" scope). -
Paste the path to Pipsync in the
Program
field. -
Set the
Arguments
to$FilePath$
.- It is here you can customize the remaining arguments to use with Pipsync.
-
Under
Advanced Options
enabledTrigger watcher on external changes
. -
Click
OK
and thenApply
to save your changes.