From 3f0e48bb9f8ac7882a1c8ed64c6b53d9891df45a Mon Sep 17 00:00:00 2001 From: zsdc Date: Mon, 15 Jul 2024 14:55:35 +0300 Subject: ruff: T6583: Added settings for ruff Ruff settings help to write code in the same style for all contributors. These settings are compatible with requirements used in another very (if not the most) popular code formatter - black, except using a single quote, to keep the style also compatible with what we have now. --- ruff.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ruff.toml diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 000000000..189f2838f --- /dev/null +++ b/ruff.toml @@ -0,0 +1,18 @@ +# Same as Black. +line-length = 88 +indent-width = 4 + +# Assume Python 3.11 +target-version = "py311" + +[format] +quote-style = "single" + +# Like Black, indent with spaces, rather than tabs. +indent-style = "space" + +# Like Black, respect magic trailing commas. +skip-magic-trailing-comma = false + +# Like Black, automatically detect the appropriate line ending. +line-ending = "auto" -- cgit v1.2.3