From 66e16a5937e3ab64d62638b39c8fa937e1d2763f Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 12 Dec 2019 13:19:06 -0800 Subject: [PATCH 1/2] Removed yapf references --- pandas/core/ops/methods.py | 2 -- setup.cfg | 7 ------- 2 files changed, 9 deletions(-) diff --git a/pandas/core/ops/methods.py b/pandas/core/ops/methods.py index 477c847fb01e6..70a2b9ae75ddd 100644 --- a/pandas/core/ops/methods.py +++ b/pandas/core/ops/methods.py @@ -162,7 +162,6 @@ def _create_methods(cls, arith_method, comp_method, bool_method, special): have_divmod = issubclass(cls, ABCSeries) # divmod is available for Series - # yapf: disable new_methods = dict( add=arith_method(cls, operator.add, special), radd=arith_method(cls, radd, special), @@ -182,7 +181,6 @@ def _create_methods(cls, arith_method, comp_method, bool_method, special): rfloordiv=arith_method(cls, rfloordiv, special), rpow=arith_method(cls, rpow, special), rmod=arith_method(cls, rmod, special)) - # yapf: enable new_methods["div"] = new_methods["truediv"] new_methods["rdiv"] = new_methods["rtruediv"] if have_divmod: diff --git a/setup.cfg b/setup.cfg index f27cd5273c06d..62d9f2e6056bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,13 +49,6 @@ ignore = E402, # module level import not at top of file exclude = doc/source/development/contributing_docstring.rst - -[yapf] -based_on_style = pep8 -split_before_named_assigns = false -split_penalty_after_opening_bracket = 1000000 -split_penalty_logical_operator = 30 - [tool:pytest] # sync minversion with setup.cfg & install.rst minversion = 4.0.2 From a6eb19ea621ffb00790a542b0c3426020c272889 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 12 Dec 2019 13:49:01 -0800 Subject: [PATCH 2/2] black --- pandas/core/ops/methods.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/ops/methods.py b/pandas/core/ops/methods.py index 70a2b9ae75ddd..8c66eea270c76 100644 --- a/pandas/core/ops/methods.py +++ b/pandas/core/ops/methods.py @@ -180,7 +180,8 @@ def _create_methods(cls, arith_method, comp_method, bool_method, special): rtruediv=arith_method(cls, rtruediv, special), rfloordiv=arith_method(cls, rfloordiv, special), rpow=arith_method(cls, rpow, special), - rmod=arith_method(cls, rmod, special)) + rmod=arith_method(cls, rmod, special), + ) new_methods["div"] = new_methods["truediv"] new_methods["rdiv"] = new_methods["rtruediv"] if have_divmod: