O'Reilly logo

Mastering PyCharm by Quazi Nafiul Islam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ignoring files

In my project, I have my virtualenv set up in my .venv folder, and I certainly don't want to include it in my commit, so I have to make sure to ignore it. So, let's head over to Settings... and do the following:

Ignoring files

Inside, we can choose to add either files or folders. Come to think of it PyCharm also generates project metadata and stores this data in the .idea folder, and I'll need to ignore that as well. After clicking on [3], we get the following window:

Ignoring files

We can choose to ignore files, folders, or even patterns. For example, you can ignore ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required