Skip to content

Commit

Permalink
Update .gitattributes to match .editorconfig
Browse files Browse the repository at this point in the history
• Expand `.editorconfig` with a few missing extensions & match line-length specified in `.flake8`
  • Loading branch information
Repiteo committed May 30, 2024
1 parent dd949a9 commit 760baa8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.py]
max_line_length = 78
[{*.py,SConstruct,SConscript}]
max_line_length = 88
ensure_newline_before_comments = true
include_trailing_comma = true
use_parentheses = true

[*.xml]
[*.{xml,yml,yaml}]
indent_size = 2

[*.rst]
indent_size = 3

[*.bat]
[*.{bat,cmd,ps1}]
end_of_line = crlf
7 changes: 5 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
* text=auto eol=lf
*.bat eol=crlf
*.cmd eol=crlf
*.ps1 eol=crlf

doc/* linguist-documentation
SCons/Tool/docbook/docbook-xsl-1.76.1 linguist-vendored
*.xml linguist-documentation
*.xsl linguist-documentation
*.gen linguist-documentation

*.in eol=lf

0 comments on commit 760baa8

Please sign in to comment.