PyCharm 2021.1 Help

Project security

To prevent potential security risks, PyCharm lets you decide how to open a project if you're not sure about its source. PyCharm warns you about tasks or configurations that will be executed during the opening process, and lets you configure sources that you can trust.

Startup tasks

When you open a project created on a different machine, it might contain some scripts or tasks that are executed during the opening process. If such tasks are found, PyCharm displays a notification suggesting that the code you are about to execute might be untrusted.

You can review what tasks will be executed and modify the settings.

Review the startup tasks

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Tools | Startup Tasks.

  2. In the Startup Tasks settings page, you can review and modify the startup tasks.

Trusted locations

You can configure what sources PyCharm should consider safe and load such projects automatically during the opening process.

You can add your home catalog to the trusted locations to disable PyCharm warnings about untrusted projects.

Configure trusted locations

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Trusted Locations.

  2. On the Trusted Locations settings page, configure local directories where the projects you consider trusted reside. Click OK to save the changes.

    Trusted Locations

    The next time you open a project from one of those locations, PyCharm will automatically load the project.

Last modified: 09 April 2021