]> git.ipfire.org Git - thirdparty/Python/cpython.git/blame - .gitattributes
GH-117714: implement athrow().close() and asend().close() using throw (GH-117906)
[thirdparty/Python/cpython.git] / .gitattributes
CommitLineData
6b6e6877
ZW
1# Binary data types
2*.aif binary
3*.aifc binary
4*.aiff binary
5*.au binary
6*.bmp binary
7*.exe binary
8*.icns binary
9*.gif binary
10*.ico binary
11*.jpg binary
27713043 12*.pck binary
6b6e6877
ZW
13*.png binary
14*.psd binary
15*.tar binary
16*.wav binary
17*.whl binary
18*.zip binary
19
20# Specific binary files
0cd6391f 21PC/classicAppCompat.* binary
6b6e6877
ZW
22
23# Text files that should not be subject to eol conversion
0b906ae5
EEA
24[attr]noeol -text
25
26Lib/test/cjkencodings/* noeol
1110c5bc 27Lib/test/tokenizedata/coding20731.py noeol
0b906ae5
EEA
28Lib/test/decimaltestdata/*.decTest noeol
29Lib/test/test_email/data/*.txt noeol
3e718cf8
JC
30Lib/test/test_importlib/resources/data01/* noeol
31Lib/test/test_importlib/resources/namespacedata01/* noeol
0b906ae5 32Lib/test/xmltestdata/* noeol
6b6e6877 33
2b6e8777
SS
34# Shell scripts should have LF even on Windows because of Cygwin
35Lib/venv/scripts/common/activate text eol=lf
eb5fd319 36Lib/venv/scripts/posix/* text eol=lf
2b6e8777 37
6b6e6877 38# CRLF files
0b906ae5
EEA
39[attr]dos text eol=crlf
40
41*.bat dos
42*.proj dos
43*.props dos
44*.ps1 dos
45*.sln dos
46*.vcxproj* dos
47PC/readme.txt dos
48PCbuild/readme.txt dos
c1897eda 49
95ad890a
RH
50# Language aware diff headers
51# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
52# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
53*.c diff=cpp
54*.h diff=cpp
55*.css diff=css
56*.html diff=html
57*.py diff=python
58*.md diff=markdown
f1e559b7
EEA
59
60# Generated files
61# https://github.com/github/linguist/blob/master/docs/overrides.md
62#
63# To always hide generated files in local diffs, mark them as binary:
64# $ git config diff.generated.binary true
65#
66[attr]generated linguist-generated=true diff=generated
67
71697664 68**/clinic/*.c.h generated
ad736742
VS
69**/clinic/*.cpp.h generated
70**/clinic/*.h.h generated
71697664
KA
71*_db.h generated
72Doc/data/stable_abi.dat generated
73Doc/library/token-list.inc generated
74Include/internal/pycore_ast.h generated
75Include/internal/pycore_ast_state.h generated
76Include/internal/pycore_opcode.h generated
e52e87c3 77Include/internal/pycore_opcode_metadata.h generated
52f91c64 78Include/internal/pycore_*_generated.h generated
c27e9d5d 79Include/internal/pycore_uop_ids.h generated
7b21403c 80Include/internal/pycore_uop_metadata.h generated
71697664 81Include/opcode.h generated
caa41a4f 82Include/opcode_ids.h generated
71697664 83Include/token.h generated
e52e87c3 84Lib/_opcode_metadata.py generated
71697664 85Lib/keyword.py generated
0876b921
WW
86Lib/test/certdata/*.pem generated
87Lib/test/certdata/*.0 generated
bbc7cd64 88Lib/test/levenshtein_examples.json generated
71697664
KA
89Lib/test/test_stable_abi_ctypes.py generated
90Lib/token.py generated
e6ac2542 91Misc/sbom.spdx.json generated
71697664
KA
92Objects/typeslots.inc generated
93PC/python3dll.c generated
94Parser/parser.c generated
95Parser/token.c generated
96Programs/test_frozenmain.h generated
97Python/Python-ast.c generated
51fc7251 98Python/executor_cases.c.h generated
7b2d94d8 99Python/generated_cases.c.h generated
c0fdfba7 100Python/optimizer_cases.c.h generated
71697664
KA
101Python/opcode_targets.h generated
102Python/stdlib_module_names.h generated
103Tools/peg_generator/pegen/grammar_parser.py generated
104aclocal.m4 generated
105configure generated