Skip to content

Commit

Permalink
add: format and isort section to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jo47011 committed Dec 1, 2024
1 parent 8b1e63e commit 8bb3709
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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}
"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

0 comments on commit 8bb3709

Please sign in to comment.