I pretty much google “Python gitignore” whenver I start a new project (that doesn’t use a template). This example should cover the needs of the majority, while the rest can be added as needed.
As an aside, I think it’s good practice to consider if a certain ignore can be globally configured and not always defaulting to cluttering up the .gitignore file.
Hope it helps!