Skip to content

Commit 760baa8

Browse files
committed
Update .gitattributes to match .editorconfig
• Expand `.editorconfig` with a few missing extensions & match line-length specified in `.flake8`
1 parent dd949a9 commit 760baa8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ trim_trailing_whitespace = true
1010
end_of_line = lf
1111
charset = utf-8
1212

13-
[*.py]
14-
max_line_length = 78
13+
[{*.py,SConstruct,SConscript}]
14+
max_line_length = 88
1515
ensure_newline_before_comments = true
1616
include_trailing_comma = true
1717
use_parentheses = true
1818

19-
[*.xml]
19+
[*.{xml,yml,yaml}]
2020
indent_size = 2
2121

2222
[*.rst]
2323
indent_size = 3
2424

25-
[*.bat]
25+
[*.{bat,cmd,ps1}]
2626
end_of_line = crlf

.gitattributes

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
* text=auto eol=lf
2+
*.bat eol=crlf
3+
*.cmd eol=crlf
4+
*.ps1 eol=crlf
5+
16
doc/* linguist-documentation
27
SCons/Tool/docbook/docbook-xsl-1.76.1 linguist-vendored
38
*.xml linguist-documentation
49
*.xsl linguist-documentation
510
*.gen linguist-documentation
6-
7-
*.in eol=lf

0 commit comments

Comments
 (0)