Skip to content

Commit

Permalink
feat: improve + standardize configs across projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgraber committed May 13, 2024
1 parent da10095 commit 0e837b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,38 @@ root = true

[*]
# Use Unix-style newlines for most files (except Windows files, see below).
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
indent_style = space
insert_final_newline = true
indent_size = 2
charset = utf-8
indent_style = space
max_line_length = 120
trim_trailing_whitespace = true

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.{bash,sh}]
indent_style = space
indent_size = 4
indent_style = space

[*.csv]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
max_line_length = 119
trim_trailing_whitespace = false

[*.{py, ipynb}]
indent_size=4
indent_size = 4
indent_style = space

[*.tsv]
indent_style = tab

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

[Makefile]
indent_style = tab
16 changes: 9 additions & 7 deletions template/{% if editorconfig %}.editorconfig{% endif %}.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,38 @@ root = true

[*]
# Use Unix-style newlines for most files (except Windows files, see below).
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
indent_style = space
insert_final_newline = true
indent_size = 2
charset = utf-8
indent_style = space
max_line_length = 120
trim_trailing_whitespace = true

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.{bash,sh}]
indent_style = space
indent_size = 4
indent_style = space

[*.csv]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
max_line_length = 119
trim_trailing_whitespace = false

[*.{py, ipynb}]
indent_size=4
indent_size = 4
indent_style = space

[*.tsv]
indent_style = tab

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

[Makefile]
indent_style = tab

0 comments on commit 0e837b2

Please sign in to comment.