From 79bf7adfc4f3d419c5fb9295404ccbebdb3f0950 Mon Sep 17 00:00:00 2001 From: Katrin Leinweber <9948149+katrinleinweber@users.noreply.github.com> Date: Tue, 21 Aug 2018 18:02:31 +0200 Subject: [PATCH] .editorconfig: code style guidelines for text editors Pull Request: carpentries/styles#216 --- .editorconfig | 25 +++++++++++++++++++++++++ bin/lesson_check.py | 1 + 2 files changed, 26 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1d7d564 --- /dev/null +++ b/.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 diff --git a/bin/lesson_check.py b/bin/lesson_check.py index b728dcb..84c28f3 100755 --- a/bin/lesson_check.py +++ b/bin/lesson_check.py @@ -102,6 +102,7 @@ BREAK_METADATA_FIELDS = { } # How long are lines allowed to be? +# Please keep this in sync with .editorconfig! MAX_LINE_LEN = 100 -- 2.30.2