From d41a45ce415a381707b4ba15cad9a6d51bb58978 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 2 Oct 2025 15:52:44 -0700 Subject: [PATCH] Add .editorconfig This is an $EDITOR-neutral way to specify the basic editing rules, like tab width, tabs vs spaces etc. Supported out of the box by Vim, Neovim, Emacs, GitHub and GitLab built-in editors etc. For more info, see https://editorconfig.org/ Note some configs in tests/*.py use both tabs and spaces, and it looks the best with tab_width = 8, thus the value. Signed-off-by: Kir Kolyshkin --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..3dabffa83f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig is awesome: https://editorconfig.org + +# This is a top-most EditorConfig file. +root = true + +[*.c] +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.py] +indent_style = space +indent_size = 4 +tab_width = 8 +insert_final_newline = true +trim_trailing_whitespace = true