From 8bb3709cf6ed0615546673f93c63c2ec0998a762 Mon Sep 17 00:00:00 2001 From: gruhn Date: Sun, 1 Dec 2024 22:24:51 +0100 Subject: [PATCH] add: format and isort section to pyproject.toml --- pyproject.toml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 454b993..c28ded9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ doc = [ [tool.ruff] line-length = 120 output-format = "concise" +line-ending = "\n" # Enforce Unix-style LF # fix = true # Enable automatic fixes by default # FIXME: TBD exclude = [ ".cache", @@ -122,4 +123,19 @@ exclude = "^test/assets/mypy_plugin_test" "pulsectl_asyncio" = {ignore_missing_imports = true} "aiomysql" = {ignore_missing_imports = true} "aiogram" = {ignore_missing_imports = true} -"aiogram.bot.api" = {ignore_missing_imports = true} \ No newline at end of file +"aiogram.bot.api" = {ignore_missing_imports = true} + + +[tool.ruff.format] +# Like Black, use double quotes for strings. +# quote-style = "double" # FIXME: do we want this now? + +# Like Black, indent with spaces, rather than tabs. +indent-style = "space" + +# Like Black, respect magic trailing commas. +skip-magic-trailing-comma = false + +[tool.isort] +profile = "black" # Use the "black" profile for import sorting consistency with Black +line_length = 120