From 54cc4d8d66e435f675ab6e4ae275b554aaa8e97a Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sun, 17 Nov 2013 18:15:43 +0530 Subject: [PATCH] feat(coding-style): Add editorconfig for consistent coding style More info at http://editorconfig.org/ * The list of projects already using it to standardize their coding styles[1]. * Inspired by editorconfig of django-model-utils[2]. [1]: http://git.io/pz1vWA [2]: http://git.io/QIAWvw --- .editorconfig | 17 +++++++++++++++++ {{cookiecutter.repo_name}}/.editorconfig | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .editorconfig create mode 100644 {{cookiecutter.repo_name}}/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..058a363f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{py,rst,ini}] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/{{cookiecutter.repo_name}}/.editorconfig b/{{cookiecutter.repo_name}}/.editorconfig new file mode 100644 index 00000000..058a363f --- /dev/null +++ b/{{cookiecutter.repo_name}}/.editorconfig @@ -0,0 +1,17 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{py,rst,ini}] +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2