Set project settings with a file or script.

Hi. I am interested in whether there is a way to set the pycharm project settings with a file or using a script. I want to include the recommended settings in the initialization script for my project, because to work with it in PyCharm, it is essential that the Excluded is set for some folders except venv. Also I need additional python interpreter path for my src folder and some others settings, such as docstring format and package requirements file. Otherwise, without excluded paths, pycharm tools try to analyze dynamically created virtual environments and it ends up with a high cpu load. Without other settings, pycharm tools mark all the code wrong, try to create a file requirements.txt and add packages to it, etc. In general, for comfortable work with the project, users need to do a number of initialization actions and I did them all, except for automating the creation of these settings in PyCharm. I would really like to automate them too and not ask users to do a lot of actions manually.

0
Not with a script, but here's the documentation on sharing project settings:
https://www.jetbrains.com/help/pycharm/sharing-project-settings.html

And sharing the global IDE settings in case you need it:
https://www.jetbrains.com/help/pycharm/sharing-your-ide-settings.html
0

When I commit .idea files to the repository, and then clone them on my computer and create a project in Pycharm from existing sources, .idea files are replaced with new config files generated by PyCharm. How should I create projects if I keep the .idea files in my repository?

0
How do you create the project from existing sources? If you simply open the project, it should not overwrite .idea.
0

请先登录再写评论。