1# Byte-compiled / optimized / DLL files
2__pycache__/
3*.py[cod]
4*$py.class
5
6# C extensions
7*.so
8
9# Distribution / packaging
10.Python
11build/
12develop-eggs/
13dist/
14downloads/
15eggs/
16.eggs/
17lib/
18lib64/
19parts/
20sdist/
21var/
22wheels/
23*.egg-info/
24.installed.cfg
25*.egg
26MANIFEST
27
28# PyInstaller
29# Usually these files are written by a python script from a template
30# before PyInstaller builds the exe, so as to inject date/other infos into it.
31*.manifest
32*.spec
33
34# Installer logs
35pip-log.txt
36pip-delete-this-directory.txt
37
38# Unit test / coverage reports
39htmlcov/
40.tox/
41.coverage
42.coverage.*
43.cache
44nosetests.xml
45coverage.xml
46*.cover
47.hypothesis/
48.pytest_cache/
49
50# Translations
51*.mo
52*.pot
53
54# Django stuff:
55*.log
56local_settings.py
57db.sqlite3
58
59# Flask stuff:
60instance/
61.webassets-cache
62
63# Scrapy stuff:
64.scrapy
65
66# Sphinx documentation
67docs/_build/
68
69# PyBuilder
70target/
71
72# Jupyter Notebook
73.ipynb_checkpoints
74
75# pyenv
76.python-version
77
78# celery beat schedule file
79celerybeat-schedule
80
81# SageMath parsed files
82*.sage.py
83
84# Environments
85.env
86.venv
87env/
88venv/
89ENV/
90env.bak/
91venv.bak/
92
93# Spyder project settings
94.spyderproject
95.spyproject
96
97# Rope project settings
98.ropeproject
99
100# mkdocs documentation
101/site
102
103# mypy
104.mypy_cache/
105
1#official python gitignore
2# Byte-compiled / optimized / DLL files
3__pycache__/
4*.py[cod]
5*$py.class
6
7# C extensions
8*.so
9
10# Distribution / packaging
11.Python
12build/
13develop-eggs/
14dist/
15downloads/
16eggs/
17.eggs/
18lib/
19lib64/
20parts/
21sdist/
22var/
23wheels/
24share/python-wheels/
25*.egg-info/
26.installed.cfg
27*.egg
28MANIFEST
29
30# PyInstaller
31# Usually these files are written by a python script from a template
32# before PyInstaller builds the exe, so as to inject date/other infos into it.
33*.manifest
34*.spec
35
36# Installer logs
37pip-log.txt
38pip-delete-this-directory.txt
39
40# Unit test / coverage reports
41htmlcov/
42.tox/
43.nox/
44.coverage
45.coverage.*
46.cache
47nosetests.xml
48coverage.xml
49*.cover
50*.py,cover
51.hypothesis/
52.pytest_cache/
53cover/
54
55# Translations
56*.mo
57*.pot
58
59# Django stuff:
60*.log
61local_settings.py
62db.sqlite3
63db.sqlite3-journal
64
65# Flask stuff:
66instance/
67.webassets-cache
68
69# Scrapy stuff:
70.scrapy
71
72# Sphinx documentation
73docs/_build/
74
75# PyBuilder
76.pybuilder/
77target/
78
79# Jupyter Notebook
80.ipynb_checkpoints
81
82# IPython
83profile_default/
84ipython_config.py
85
86# pyenv
87# For a library or package, you might want to ignore these files since the code is
88# intended to run in multiple environments; otherwise, check them in:
89# .python-version
90
91# pipenv
92# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93# However, in case of collaboration, if having platform-specific dependencies or dependencies
94# having no cross-platform support, pipenv may install dependencies that don't work, or not
95# install all needed dependencies.
96#Pipfile.lock
97
98# PEP 582; used by e.g. github.com/David-OConnor/pyflow
99__pypackages__/
100
101# Celery stuff
102celerybeat-schedule
103celerybeat.pid
104
105# SageMath parsed files
106*.sage.py
107
108# Environments
109.env
110.venv
111env/
112venv/
113ENV/
114env.bak/
115venv.bak/
116
117# Spyder project settings
118.spyderproject
119.spyproject
120
121# Rope project settings
122.ropeproject
123
124# mkdocs documentation
125/site
126
127# mypy
128.mypy_cache/
129.dmypy.json
130dmypy.json
131
132# Pyre type checker
133.pyre/
134
135# pytype static type analyzer
136.pytype/
137
138# Cython debug symbols
139cython_debug/
140
1# Byte-compiled / optimized / DLL files
2__pycache__/
3*.py[cod]
4*$py.class
5
6# C extensions
7*.so
8
9# Distribution / packaging
10.Python
11build/
12develop-eggs/
13dist/
14downloads/
15eggs/
16.eggs/
17lib/
18lib64/
19parts/
20sdist/
21var/
22wheels/
23share/python-wheels/
24*.egg-info/
25.installed.cfg
26*.egg
27MANIFEST
28
29# PyInstaller
30# Usually these files are written by a python script from a template
31# before PyInstaller builds the exe, so as to inject date/other infos into it.
32*.manifest
33*.spec
34
35# Installer logs
36pip-log.txt
37pip-delete-this-directory.txt
38
39# Unit test / coverage reports
40htmlcov/
41.tox/
42.nox/
43.coverage
44.coverage.*
45.cache
46nosetests.xml
47coverage.xml
48*.cover
49*.py,cover
50.hypothesis/
51.pytest_cache/
52cover/
53
54# Translations
55*.mo
56*.pot
57
58# Django stuff:
59*.log
60local_settings.py
61db.sqlite3
62db.sqlite3-journal
63
64# Flask stuff:
65instance/
66.webassets-cache
67
68# Scrapy stuff:
69.scrapy
70
71# Sphinx documentation
72docs/_build/
73
74# PyBuilder
75.pybuilder/
76target/
77
78# Jupyter Notebook
79.ipynb_checkpoints
80
81# IPython
82profile_default/
83ipython_config.py
84
85# pyenv
86# For a library or package, you might want to ignore these files since the code is
87# intended to run in multiple environments; otherwise, check them in:
88# .python-version
89
90# pipenv
91# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92# However, in case of collaboration, if having platform-specific dependencies or dependencies
93# having no cross-platform support, pipenv may install dependencies that don't work, or not
94# install all needed dependencies.
95#Pipfile.lock
96
97# PEP 582; used by e.g. github.com/David-OConnor/pyflow
98__pypackages__/
99
100# Celery stuff
101celerybeat-schedule
102celerybeat.pid
103
104# SageMath parsed files
105*.sage.py
106
107# Environments
108.env
109.venv
110env/
111venv/
112ENV/
113env.bak/
114venv.bak/
115
116# Spyder project settings
117.spyderproject
118.spyproject
119
120# Rope project settings
121.ropeproject
122
123# mkdocs documentation
124/site
125
126# mypy
127.mypy_cache/
128.dmypy.json
129dmypy.json
130
131# Pyre type checker
132.pyre/
133
134# pytype static type analyzer
135.pytype/
136
137# Cython debug symbols
138cython_debug/
1When using buildout I have following in .gitignore (along with *.pyo and *.pyc):
2
3.installed.cfg
4bin
5develop-eggs
6dist
7downloads
8eggs
9parts
10src/*.egg-info
11lib
12lib64
13Thanks to Jacob Kaplan-Moss
14
15Also I tend to put .svn in since we use several SCM-s where I work.