Python.gitignore 2.7 KB
Newer Older
R
Ray Shan 已提交
1
# Byte-compiled / optimized / DLL files
2
__pycache__/
3
*.py[cod]
4
*$py.class
5 6 7

# C extensions
*.so
8

9
# Distribution / packaging
10
.Python
11 12 13
build/
develop-eggs/
dist/
14
downloads/
15
eggs/
16
.eggs/
17 18 19 20 21
lib/
lib64/
parts/
sdist/
var/
R
Rolando Espinoza 已提交
22
wheels/
23
share/python-wheels/
24
*.egg-info/
25
.installed.cfg
26
*.egg
S
Shiwei Sun 已提交
27
MANIFEST
28

M
Metallicow 已提交
29
# PyInstaller
M
Mateusz Jagiełło 已提交
30
#  Usually these files are written by a python script from a template
M
Metallicow 已提交
31 32
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
M
Metallicow 已提交
33
*.spec
M
Metallicow 已提交
34

35 36
# Installer logs
pip-log.txt
37
pip-delete-this-directory.txt
38 39

# Unit test / coverage reports
H
hugovk 已提交
40
htmlcov/
41
.tox/
42
.nox/
43
.coverage
44
.coverage.*
S
Sam Clements 已提交
45
.cache
46
nosetests.xml
C
Changjian Gao 已提交
47
coverage.xml
Y
Younggun Kim 已提交
48
*.cover
49
*.py,cover
H
Hugo 已提交
50
.hypothesis/
51
.pytest_cache/
52
cover/
53

54
# Translations
55
*.mo
56
*.pot
K
Kevin Deldycke 已提交
57

C
Carl Suster 已提交
58 59
# Django stuff:
*.log
E
Edson Dota 已提交
60
local_settings.py
61
db.sqlite3
62
db.sqlite3-journal
J
Jordi Llonch 已提交
63

2
2Cubed 已提交
64
# Flask stuff:
H
Harrison G 已提交
65
instance/
2
2Cubed 已提交
66
.webassets-cache
H
Harrison G 已提交
67

C
Capi Etheriel 已提交
68 69 70
# Scrapy stuff:
.scrapy

J
Jordi Llonch 已提交
71 72
# Sphinx documentation
docs/_build/
73 74

# PyBuilder
75
.pybuilder/
76
target/
R
Richard K 已提交
77

78
# Jupyter Notebook
79
.ipynb_checkpoints
80

A
amigcamel 已提交
81
# IPython
82
profile_default/
A
amigcamel 已提交
83 84
ipython_config.py

R
Richard K 已提交
85
# pyenv
86 87 88
#   For a library or package, you might want to ignore these files since the code is
#   intended to run in multiple environments; otherwise, check them in:
# .python-version
89

J
Jarry Shaw 已提交
90 91 92
# pipenv
#   According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
#   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
J
Jarry Shaw 已提交
94 95 96
#   install all needed dependencies.
#Pipfile.lock

J
JP-Ellis 已提交
97 98 99 100 101 102 103
# poetry
#   Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
#   This is especially recommended for binary packages to ensure reproducibility, and is more
#   commonly ignored for libraries.
#   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

M
mrg0029 已提交
104
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
105 106
__pypackages__/

P
Petronald Green 已提交
107
# Celery stuff
108
celerybeat-schedule
P
Petronald Green 已提交
109
celerybeat.pid
110

P
Pedro M. Sosa 已提交
111
# SageMath parsed files
112 113
*.sage.py

114
# Environments
R
roll 已提交
115
.env
M
Max 已提交
116
.venv
117
env/
118 119
venv/
ENV/
J
jwg4 已提交
120 121
env.bak/
venv.bak/
122

123 124
# Spyder project settings
.spyderproject
125
.spyproject
G
Greg Trahair 已提交
126 127 128

# Rope project settings
.ropeproject
129 130

# mkdocs documentation
131
/site
B
Brett Cannon 已提交
132 133 134

# mypy
.mypy_cache/
135
.dmypy.json
136
dmypy.json
137 138 139

# Pyre type checker
.pyre/
B
Brad Solomon 已提交
140 141 142

# pytype static type analyzer
.pytype/
143 144 145

# Cython debug symbols
cython_debug/
146 147 148

# PyCharm
#  JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
149
#  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
150 151 152
#  and can be added to the global gitignore or merged into this file.  For a more nuclear
#  option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/