diff options
author | zsdc <taras@vyos.io> | 2024-07-15 14:55:35 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2024-07-15 14:55:35 +0300 |
commit | 3f0e48bb9f8ac7882a1c8ed64c6b53d9891df45a (patch) | |
tree | 2022aea997220616b6ba56e06bfa793be98ede35 /ruff.toml | |
parent | 79d5230d3d91362e6292a1eb394b0beb7c38ef45 (diff) | |
download | vyos-1x-3f0e48bb9f8ac7882a1c8ed64c6b53d9891df45a.tar.gz vyos-1x-3f0e48bb9f8ac7882a1c8ed64c6b53d9891df45a.zip |
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.
Diffstat (limited to 'ruff.toml')
-rw-r--r-- | ruff.toml | 18 |
1 files changed, 18 insertions, 0 deletions
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" |