From 0d68c454a58b83abe85af8caa792e751c23b3683 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 27 Jan 2022 16:28:43 +0000 Subject: [PATCH] Add .editorconfig * The settings are for all file types, we might have some exceptions, i.e. .xml files. * This is based on what we've been doing all along. Only the max line length has previously been codified in, e.g. pyproject.toml. We've not even codified things like "4-space indentations, expanded from TABs" in Contributing.md. --- .editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..7dcb0a42 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# This is the project top-level .editorconfig +root = true + +# Defaults for all file types +[*] +# 4-space indents, no TABs +indent_style = space +tab_width = 4 +indent_size = tab + +# Hard-wrap at 120 columns +max_line_length = 119 + +# Unix EOL +end_of_line = lf + +# UTF-8 is the only sensible option, no BOM +charset = utf-8 + +# All files should have a final newline +insert_final_newline = true