Skip to content

Commit 8fbe677

Browse files
committed
Add .gitattributes for test outputs
Marks test files as non-text in .gitattributes, to prevent line-ending normalisation on them when checked out on Windows with autocrlf enabled. Also, mark all .py files as lf-only, as this is what the parser expects (in particular, for triple quoted strings).
1 parent 9fbc6b7 commit 8fbe677

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.gitattributes

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Mark python files as text ending with lf
2+
*.py text eol=lf
3+
4+
# Mark test outputs as non-text, to prevent line-ending normalization
5+
/test/**/*.expect -text
6+
/test/**/*.trans -text
7+
/test/**/*.py.symtab -text
8+
/test/**/*.py.real -text
9+
/test/**/*.py.real.alt -text

0 commit comments

Comments
 (0)