From e25bc620e9158289677095088f62c60055d3fa23 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Wed, 16 Sep 2026 21:24:58 +0800 Subject: [PATCH 1/2] Add .gitignore file ignore Python cache files Signed-off-by: xxyzz --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c18dd8d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ From f41ad28b2dc6e1c3d247ef451ca6da25f675760e Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 17 Sep 2026 07:31:07 +0800 Subject: [PATCH 2/2] Update .editorconfig file add `insert_final_newline` and Python indent settings Signed-off-by: xxyzz --- .editorconfig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 89742b69..0252156c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,15 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + [*.[ch]] indent_style = space indent_size = 2 -trim_trailing_whitespace = true indent_brace_style = gnu + +[*.py] +indent_style = space +indent_size = 4