blob: 3827d09709d4a7030d0c1be15957d885e2159c4d [file] [log] [blame]
Zachary Ware6b6e6872017-06-10 14:58:42 -05001# 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
Benjamin Peterson27713042017-02-22 22:38:48 -080012*.pck binary
Zachary Ware6b6e6872017-06-10 14:58:42 -050013*.png binary
14*.psd binary
15*.tar binary
16*.wav binary
17*.whl binary
18*.zip binary
19
20# Specific binary files
Benjamin Peterson27713042017-02-22 22:38:48 -080021Lib/test/sndhdrdata/sndhdr.* binary
Steve Dower0cd63912018-12-10 18:52:57 -080022PC/classicAppCompat.* binary
Zachary Ware6b6e6872017-06-10 14:58:42 -050023
24# Text files that should not be subject to eol conversion
25Lib/test/cjkencodings/* -text
26Lib/test/decimaltestdata/*.decTest -text
27Lib/test/test_email/data/*.txt -text
28Lib/test/xmltestdata/* -text
29Lib/test/coding20731.py -text
Victor Stinner44a70e92018-01-17 10:26:03 +010030Lib/test/test_importlib/data01/* -text
Zachary Ware6b6e6872017-06-10 14:58:42 -050031
Zachary Ware6b6e6872017-06-10 14:58:42 -050032# CRLF files
33*.bat text eol=crlf
34*.ps1 text eol=crlf
35*.sln text eol=crlf
36*.vcxproj* text eol=crlf
37*.props text eol=crlf
38*.proj text eol=crlf
39PCbuild/readme.txt text eol=crlf
40PC/readme.txt text eol=crlf
INADA Naokic1897ed2018-06-16 00:45:02 +090041
42# Generated files
43# https://github.com/github/linguist#generated-code
INADA Naokic1897ed2018-06-16 00:45:02 +090044Modules/clinic/*.h linguist-generated=true
45Objects/clinic/*.h linguist-generated=true
46PC/clinic/*.h linguist-generated=true
47Python/clinic/*.h linguist-generated=true
48Python/importlib.h linguist-generated=true
49Python/importlib_external.h linguist-generated=true
50Include/Python-ast.h linguist-generated=true
51Python/Python-ast.c linguist-generated=true
52Include/opcode.h linguist-generated=true
53Python/opcode_targets.h linguist-generated=true
54Objects/typeslots.inc linguist-generated=true
Greg Price4e3dfcc2019-08-12 22:23:41 -070055*_db.h linguist-generated=true
Serhiy Storchaka8ac65812018-12-22 11:18:40 +020056Doc/library/token-list.inc linguist-generated=true
57Include/token.h linguist-generated=true
58Lib/token.py linguist-generated=true
59Parser/token.c linguist-generated=true
Raymond Hettinger95ad8902020-10-19 12:13:01 -070060
61# Language aware diff headers
62# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
63# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
64*.c diff=cpp
65*.h diff=cpp
66*.css diff=css
67*.html diff=html
68*.py diff=python
69*.md diff=markdown