Recommended .hgignore file for Python projects?

1.7k views Asked by At

I'm an experienced iOS developer diving into Python. I'm setting up my first Django project. This is also first time for me to use Mercurial for version control (before I heavily used SVN, then GIT).

I'm trying to create a nice .hgignore file. So far I have:

syntax: glob
bin/**
include/**
lib/**
pip-selfcheck.json
.Python

What other files should I put there? I'm using virtualenv and pip to create my development environment. Thanks for help!

1

There are 1 answers

0
sage On BEST ANSWER

I just searched and it appears there is an example in the Django repo at Github (raw text) - the current version is:

syntax:glob

*.egg-info
*.pot
*.py[co]
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

Note that some of that seems specific to their layout, but I'm still starting from this rather than from one of my own .gitignore files (I use git for my projects, but today I'm creating an example for another team that uses hg).