• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#####
2# First, rules intended to apply in all subdirectories.
3# These contain no slash, or only a trailing slash.
4
5*.cover
6*.iml
7*.o
8*.a
9*.so*
10*.dylib
11*.dll
12*.orig
13*.pyc
14*.pyd
15*.pyo
16*.rej
17*.swp
18*~
19*.gc??
20*.profclang?
21*.profraw
22*.dyn
23.gdb_history
24.purify
25__pycache__
26.hg/
27.svn/
28.idea/
29tags
30TAGS
31.vs/
32.vscode/
33gmon.out
34.coverage
35.mypy_cache/
36
37*.exe
38!Lib/distutils/command/*.exe
39
40# Ignore core dumps... but not Tools/msi/core/ or the like.
41core
42!core/
43
44
45#####
46# Then, rules meant for a specific location relative to the repo root.
47# These must contain a non-trailing slash (and may also have a trailing slash.)
48
49Doc/build/
50Doc/venv/
51Doc/.venv/
52Doc/env/
53Doc/.env/
54Include/pydtrace_probes.h
55Lib/distutils/command/*.pdb
56Lib/lib2to3/*.pickle
57Lib/test/data/*
58!Lib/test/data/README
59/Makefile
60/Makefile.pre
61Misc/python.pc
62Misc/python-embed.pc
63Misc/python-config.sh
64Modules/Setup.config
65Modules/Setup.local
66Modules/config.c
67Modules/ld_so_aix
68Programs/_freeze_importlib
69Programs/_testembed
70PC/python_nt*.h
71PC/pythonnt_rc*.h
72PC/*/*.exp
73PC/*/*.lib
74PC/*/*.bsc
75PC/*/*.dll
76PC/*/*.pdb
77PC/*/*.user
78PC/*/*.ncb
79PC/*/*.suo
80PC/*/Win32-temp-*
81PC/*/x64-temp-*
82PC/*/amd64
83PCbuild/*.user
84PCbuild/*.suo
85PCbuild/*.*sdf
86PCbuild/*-pgi
87PCbuild/*-pgo
88PCbuild/*.VC.db
89PCbuild/*.VC.opendb
90PCbuild/amd64/
91PCbuild/arm32/
92PCbuild/arm64/
93PCbuild/obj/
94PCbuild/win32/
95/autom4te.cache
96/build/
97/config.cache
98/config.log
99/config.status
100/config.status.lineno
101/platform
102/pybuilddir.txt
103/pyconfig.h
104/python-config
105/python-config.py
106/python.bat
107/python-gdb.py
108/python.exe-gdb.py
109/reflog.txt
110/coverage/
111/externals/
112/htmlcov/
113Tools/msi/obj
114Tools/ssl/amd64
115Tools/ssl/win32
116
117# Two-trick pony for OSX and other case insensitive file systems:
118# Ignore ./python binary on Unix but still look into ./Python/ directory.
119/python
120!/Python/
121