From ffe18075c5175db2b8f5108b9bab70f178f2d98c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 10 Feb 2023 09:02:31 +0100 Subject: [PATCH] move yapf config to pyproject.toml (#448) --- pyproject.toml | 12 +++++++++++- setup.cfg | 8 -------- 2 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 2c69a3d..49a3332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ vcs = "git" addopts = "ansibledoctor --cov=ansibledoctor --cov-report=xml:coverage.xml --cov-report=term --cov-append --no-cov-on-fail" filterwarnings = [ "ignore::FutureWarning", - "ignore:.*collections.*:DeprecationWarning", + "ignore::DeprecationWarning", "ignore:.*pep8.*:FutureWarning", ] @@ -100,6 +100,7 @@ exclude = [ # D107: Missing docstring in __init__ # D202: No blank lines allowed after function docstring # D203: One blank line required before class docstring +# D212: Multi-line docstring summary should start at the first line ignore = [ "D102", "D103", @@ -134,3 +135,12 @@ select = [ [tool.ruff.flake8-quotes] inline-quotes = "double" + +[tool.yapf] +based_on_style = "google" +column_limit = 99 +dedent_closing_brackets = true +coalesce_brackets = true +split_before_logical_operator = true +indent_dictionary_value = true +allow_split_before_dict_value = false diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index bb31f43..0000000 --- a/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[yapf] -based_on_style = google -column_limit = 99 -dedent_closing_brackets = true -coalesce_brackets = true -split_before_logical_operator = true -indent_dictionary_value = true -allow_split_before_dict_value = false