Skip to content

Commit

Permalink
.editorconfig: code style guidelines for text editors
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinleinweber authored and maxim-belkin committed Aug 21, 2018
1 parent ebc4230 commit 79bf7ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
@@ -0,0 +1,25 @@
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
indent_size = 2
indent_style = space
max_line_length = 100 # Please keep this in sync with bin/lesson_check.py!

[*.r]
max_line_length = 80

[*.py]
indent_size = 4
indent_style = space
max_line_length = 79

[*.sh]
end_of_line = lf

[Makefile]
indent_style = tab
1 change: 1 addition & 0 deletions bin/lesson_check.py
Expand Up @@ -102,6 +102,7 @@
}

# How long are lines allowed to be?
# Please keep this in sync with .editorconfig!
MAX_LINE_LEN = 100


Expand Down

0 comments on commit 79bf7ad

Please sign in to comment.