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.
This commit is contained in:
Athanasius committed 2022-01-27 16:28:43 +00:00
1 parent 5e612d56b3
commit 0d68c454a5
1 file changed
+21
+21
View File
@@ -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