From fbf879611b89fd82b8391edd493cc52f7181328b Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Fri, 24 Sep 2021 16:48:54 +0200 Subject: [PATCH] chore: add editorconfig --- .editorconfig | 16 ++++++++++++++++ site_list.py | 1 + 2 files changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d97e35e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +curly_bracket_next_line = false + +[*.{markdown,md}] +trim_trailing_whitespace = false + +[*.py] +indent_size = 4 diff --git a/site_list.py b/site_list.py index ea64d95..a23824a 100644 --- a/site_list.py +++ b/site_list.py @@ -25,5 +25,6 @@ sorted_json_data = json.dumps(data, indent=2, sort_keys=True) with open("sherlock/resources/data.json", "w") as data_file: data_file.write(sorted_json_data) + data_file.write('\n') print("Finished updating supported site listing!")