From db808b2eaacd15503b7cc45e187f5d850a5a96c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Fri, 5 Apr 2024 09:43:54 +0200 Subject: [PATCH] Copy the formatting configs from Oscar.jl (#1698) --- .JuliaFormatter.toml | 8 ++++++++ .editorconfig | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .JuliaFormatter.toml create mode 100644 .editorconfig diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml new file mode 100644 index 0000000000..036d503b64 --- /dev/null +++ b/.JuliaFormatter.toml @@ -0,0 +1,8 @@ +style = "blue" + +always_use_return = false +annotate_untyped_fields_with_any = true +import_to_using = false +indent = 2 +short_to_long_function_def = false +always_for_in = true diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..fbeac295b1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +#trim_trailing_whitespace = true # as long as we don't enforce this, this option causes more trouble than it helps + +[*.jl] +indent_size = 2 + +[*.yml] +indent_size = 2