It is located in the root folder of the respective project, in the hidden folder .idea, along with other PyCharm project settings.
From the official documentation:
All the settings files in the .idea directory should be put under version control except the workspace.xml, which stores your local preferences. The workspace.xml file should be marked as ignored by VCS.
According to this, the right course of action would be to remove the file from the repo, and add the following line to the .gitignore file:
.idea/workspace.xml Keep in mind that this is what JetBrains as the developers of PyCharm recommend, your project manager or colleagues might have another opinion on the matter.