From ce068a2bd9b3884dcdda5d9cb7780825ab896d55 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Wed, 26 Feb 2025 17:48:44 -0800 Subject: [PATCH] Add .editorconfig file This adds settings based on some common-sense values and the TensorFlow Quantum project's current conventions, such as line length and use of spaces instead of tabs. The settings match the corresponding ones in `.pylintrc`. --- .editorconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..52f092ed8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# Summary: coding style configuration for editors that read .editorconfig. +# +# EditorConfig defines a file format for specifying some common coding style +# parameters. Many editors recognize .editorconfig files automatically, and +# there exist plugins for other editors. See https://spec.editorconfig.org/. + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +spelling_language = en-US +trim_trailing_whitespace = true + +[*.py] +indent_size = 4 +indent_style = space +max_line_length = 80 + +[*.sh] +indent_size = 4 +indent_style = space +max_line_length = 80 + +[*.yml,*.yaml] +indent_size = 2