From a6feea4036b8138213301968f1c57880fdaeaf75 Mon Sep 17 00:00:00 2001 From: Saurav Maheshkar Date: Fri, 6 Jan 2023 15:47:58 +0530 Subject: [PATCH] chore: add yapf config to `pyproject.toml` (#230) * style(yapf): add yapf config to `pyproject.toml` * style(yapf): drop `.style.yapf` --- .style.yapf | 8 -------- pyproject.toml | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 .style.yapf diff --git a/.style.yapf b/.style.yapf deleted file mode 100644 index d1dcd0f77..000000000 --- a/.style.yapf +++ /dev/null @@ -1,8 +0,0 @@ -[style] -based_on_style: yapf -column_limit: 80 -indent_width: 2 -split_before_named_assigns: True -spaces_around_power_operator: True -dedent_closing_brackets: True -coalesce_brackets: True diff --git a/pyproject.toml b/pyproject.toml index 87b7846f0..827a20899 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -131,3 +131,12 @@ precision = 2 show_missing = true skip_empty = true sort = "Miss" + +[tool.yapf] +based_on_style = "yapf" +column_limit = 80 +indent_width = 2 +split_before_named_assigns = true +spaces_around_power_operator = true +dedent_closing_brackets = true +coalesce_brackets = true