summaryrefslogtreecommitdiff
path: root/.gitattributes
blob: 537650d395feea0722a41b274562f77f7f979d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Highlight our custom templating language as C, since it's hopefully better
# than nothing. This also affects repo statistics.
*.c.src   text linguist-language=C
*.inc.src text linguist-language=C
*.h.src   text linguist-language=C
*.pyx.in  text linguist-language=Python
*.pxd.in  text linguist-language=Python

# Mark some files as vendored
numpy/linalg/lapack_lite/f2c.c linguist-vendored
numpy/linalg/lapack_lite/f2c.h linguist-vendored
tools/npy_tempita/* linguist-vendored
numpy/core/include/numpy/libdivide/* linguist-vendored
numpy/core/src/umath/svml/* linguist-vendored
numpy/core/src/common/dlpack/dlpack.h linguist-vendored

# Mark some files as generated
numpy/linalg/lapack_lite/f2c_*.c linguist-generated
numpy/linalg/lapack_lite/lapack_lite_names.h linguist-generated
numpy/_version.py linguist-generated

# versioneer config
numpy/_version.py export-subst

# Configuration files
*.ini text
*.cfg text
./MANIFEST.in text
./numpy/core/npymath.ini.in text
./numpy/core/mlib.ini.in text
./site.cfg.example text

# Python sources
*.py    text diff=python
*.pxd   text diff=python
*.pyx   text diff=python
*.pyi   text diff=python

# C/C++ sources
*.c     text diff=c
*.h     text diff=c
*.cc    text diff=cpp
*.cxx   text diff=cpp
*.cpp   text diff=cpp
*.hpp   text diff=cpp
*.hh    text diff=cpp

# Fortran sources
*.f     text diff=fortran
*.for   text diff=fortran
*.f90   text diff=fortran
*.f95   text diff=fortran
*.f03   text diff=fortran

# JavaScript
*.js    text

# F2py
./doc/source/f2py/*.pyf text
./doc/source/f2py/*.dat text
./numpy/f2py/tests/src/module_data/mod.mod binary

# Documents
*.md    text diff=markdown
*.txt   text
*.rst   text
*.pdf   binary
*.css   text diff=css
*.html  text diff=html

# Graphics
*.png   binary
*.ico   binary
*.dia   binary
*.gif   binary
*.odg   binary
*.fig   text
*.svg   text
# SVG is treated as an asset (binary) by default. If you want
# to treat it as binary, use the following line instead.
# *.svg    binary

# Scripts
*.sh    text eol=lf
*.sed   text
# These are explicitly windows files and should use crlf
*.bat   text eol=crlf
*.cmd   text eol=crlf

# Serialisation
*.json  text
*.toml  text
*.xml   text
*.yaml  text
*.yml   text

# Data files
*.csv   text
*.pkl   binary
*.fits  binary
*.npy   binary
*.npz   binary

# Misc.
*.swg   text
*.patch text
./doc/neps/index.rst.tmpl text
./benchmarks/asv_compare.conf.json.tpl text
./tools/swig/test/*.i text
./tools/gitpod/gitpod.Dockerfile text
./doc/source/dev/gitwash/git_links.inc text
./doc/source/reference/simd/*.inc text
./numpy/core/src/_simd/*.inc text diff=c