Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca49502

Browse files
committed
MAINT: Explicitly mark text files in .gitattributes.
Marking files as text will ensure the line endings are normalized to lf on checkin. The line endings in the working tree may be controlled by setting the eol variable in the .gitconfig file.
1 parent 2416ff4 commit ca49502

1 file changed

Lines changed: 96 additions & 10 deletions

File tree

.gitattributes

Lines changed: 96 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
# Numerical data files
2-
numpy/lib/tests/data/*.npy binary
3-
4-
# Release notes, reduce number of conflicts.
5-
doc/release/*.rst merge=union
6-
71
# Highlight our custom templating language as C, since it's hopefully better
82
# than nothing. This also affects repo statistics.
9-
*.c.src linguist-language=C
10-
*.inc.src linguist-language=C
11-
*.h.src linguist-language=C
3+
*.c.src text linguist-language=C
4+
*.inc.src text linguist-language=C
5+
*.h.src text linguist-language=C
6+
*.pyx.in text linguist-language=Python
7+
*.pxd.in text linguist-language=Python
128

139
# Mark some files as vendored
1410
numpy/linalg/lapack_lite/f2c.c linguist-vendored
@@ -19,5 +15,95 @@ numpy/core/include/numpy/libdivide/* linguist-vendored
1915
# Mark some files as generated
2016
numpy/linalg/lapack_lite/f2c_*.c linguist-generated
2117
numpy/linalg/lapack_lite/lapack_lite_names.h linguist-generated
22-
2318
numpy/_version.py export-subst
19+
20+
# Configuration files
21+
*.ini text
22+
*.cfg text
23+
./MANIFEST.in text
24+
./numpy/core/npymath.ini.in text
25+
./numpy/core/mlib.ini.in text
26+
./site.cfg.example text
27+
28+
# Python sources
29+
*.py text diff=python
30+
*.pxd text diff=python
31+
*.pyx text diff=python
32+
*.pyi text diff=python
33+
34+
# C/C++ sources
35+
*.c text diff=c
36+
*.h text diff=c
37+
*.cc text diff=cpp
38+
*.cxx text diff=cpp
39+
*.cpp text diff=cpp
40+
*.hpp text diff=cpp
41+
*.hh text diff=cpp
42+
43+
# Fortran sources
44+
*.f text diff=fortran
45+
*.for text diff=fortran
46+
*.f90 text diff=fortran
47+
*.f95 text diff=fortran
48+
*.f03 text diff=fortran
49+
50+
# JavaScript
51+
*.js text
52+
53+
# F2py
54+
./doc/source/f2py/*.pyf text
55+
./doc/source/f2py/*.dat text
56+
./numpy/f2py/tests/src/module_data/mod.mod binary
57+
58+
# Documents
59+
*.md text diff=markdown
60+
*.txt text
61+
*.rst text
62+
*.pdf binary
63+
*.css text diff=css
64+
*.html text diff=html
65+
66+
# Graphics
67+
*.png binary
68+
*.ico binary
69+
*.dia binary
70+
*.gif binary
71+
*.odg binary
72+
*.fig text
73+
*.svg text
74+
# SVG is treated as an asset (binary) by default. If you want
75+
# to treat it as binary, use the following line instead.
76+
# *.svg binary
77+
78+
# Scripts
79+
*.sh text eol=lf
80+
*.sed text
81+
# These are explicitly windows files and should use crlf
82+
*.bat text eol=crlf
83+
*.cmd text eol=crlf
84+
85+
# Serialisation
86+
*.json text
87+
*.toml text
88+
*.xml text
89+
*.yaml text
90+
*.yml text
91+
92+
# Data files
93+
*.csv text
94+
*.pkl binary
95+
*.fits binary
96+
*.npy binary
97+
*.npz binary
98+
99+
# Misc.
100+
*.swg text
101+
*.patch text
102+
./doc/neps/index.rst.tmpl text
103+
./benchmarks/asv_compare.conf.json.tpl text
104+
./tools/swig/test/*.i text
105+
./tools/gitpod/gitpod.Dockerfile text
106+
./doc/source/dev/gitwash/git_links.inc text
107+
./doc/source/reference/simd/*.inc text
108+
./numpy/core/src/_simd/*.inc text diff=c
109+

0 commit comments

Comments
 (0)