From a5f0e4b5f2f18201325acb71d9bb67f21bafad0b Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Sun, 23 Oct 2016 14:41:31 +0200 Subject: [PATCH] Introduced a .editorconfig file for consistent coding style --- .editorconfig | 20 ++++++++++++++++++++ .gitignore | 1 + 2 files changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..6ce6ca85b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true +end_of_line = lf +charset = utf-8 + +# Docstrings and comments use max_line_length = 79 +[*.py] +max_line_length = 119 + +# Minified JavaScript files shouldn't be changed +[**.min.js] +indent_style = ignore +insert_final_newline = ignore diff --git a/.gitignore b/.gitignore index 41768084c..5a348b5ec 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ coverage.* !.gitignore !.travis.yml !.isort.cfg +!.editorconfig