Skip to content

Commit ddcd202

Browse files
committed
Add gitattributes default values
1 parent 9d7e9f2 commit ddcd202

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.gitattributes

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
# Basic .gitattributes for a python repo.
1+
# THIS IS ONLY FOR THE gitattributes REPOSITORY.
2+
# Handle line endings automatically for files detected as text
3+
# and leave all files detected as binary untouched.
4+
* text=auto
5+
6+
# These files are text and should be normalized (Convert crlf => lf)
7+
*.gitattributes text
8+
.gitignore text
9+
*.md text diff=markdown
10+
11+
# Exclude files from exporting
12+
.gitattributes export-ignore
13+
.gitignore export-ignore
14+
15+
# Enable syntax highlighting for files with `.gitattributes` extensions.
16+
*.gitattributes linguist-language=gitattributes
17+
*.gitattributes linguist-detectable=true
18+
*.gitattributes linguist-documentation=false
219

320
# Source files
421
# ============
@@ -23,6 +40,11 @@
2340
# Jupyter notebook
2441
*.ipynb text eol=lf
2542

43+
# Note: .db, .p, and .pkl files are associated
44+
# with the python modules ``pickle``, ``dbm.*``,
45+
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
46+
# (among others).
47+
2648
# Apply override to all files in the directory
2749
*.md linguist-detectable
2850

@@ -33,8 +55,3 @@
3355
*.tf text eol=lf
3456
*.tf.json text eol=lf
3557
*.tfvars text eol=lf
36-
37-
# Note: .db, .p, and .pkl files are associated
38-
# with the python modules ``pickle``, ``dbm.*``,
39-
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
40-
# (among others).

0 commit comments

Comments
 (0)