diff --git a/bezier/_surface_helpers.py b/bezier/_surface_helpers.py index 29e3ee6a..0ac01f7a 100644 --- a/bezier/_surface_helpers.py +++ b/bezier/_surface_helpers.py @@ -265,7 +265,9 @@ def polynomial_sign(poly_surface): number of subdivisions. """ # The indices where the corner nodes in a surface are. + # pylint: disable=protected-access corner_indices = (0, poly_surface._degree, -1) + # pylint: enable=protected-access sub_polys = [poly_surface] signs = set() for _ in six.moves.xrange(_MAX_POLY_SUBDIVISIONS): diff --git a/tests/test__surface_helpers.py b/tests/test__surface_helpers.py index 382df97b..f49c829f 100644 --- a/tests/test__surface_helpers.py +++ b/tests/test__surface_helpers.py @@ -99,7 +99,9 @@ def test_conclusion_from_corner_node(self): # [0.0 0.5 ] # [0.5 0.5 ] # [0.25 1.0 ] + # pylint: disable=no-member bernstein = np.array([[1.0, 0.5, 0.0, 0.75, 0.4375, 1.0]]).T + # pylint: enable=no-member self._helper(bernstein, 0) diff --git a/tox.ini b/tox.ini index c9cb18e6..80847c10 100644 --- a/tox.ini +++ b/tox.ini @@ -91,13 +91,13 @@ commands = --application-import-names="bezier,tests" \ {toxinidir}/bezier {toxinidir}/tests pylint --rcfile pylintrc \ - --max-module-lines=2076 \ + --max-module-lines=2083 \ {toxinidir}/bezier pylint --rcfile pylintrc \ --disable=missing-docstring \ --disable=protected-access \ --disable=too-many-public-methods \ - --max-module-lines=1802 \ + --max-module-lines=1813 \ {toxinidir}/functional_tests \ {toxinidir}/tests deps =