This is an automated email from the ASF dual-hosted git repository.
mchades pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 2501f991a1 [MINOR] fix(client-python): Avoid order-dependent Pylint
failures (#14644)
2501f991a1 is described below
commit 2501f991a1eaae430f119af2130c86604f2225f4
Author: mchades <[email protected]>
AuthorDate: Thu Nov 5 10:58:26 2026 +0800
[MINOR] fix(client-python): Avoid order-dependent Pylint failures (#14644)
### What changes were proposed in this pull request?
Use `too-many-lines` consistently for Pylint suppressions and remove a
duplicate `C0302` suppression.
### Why are the changes needed?
Mixing numeric and symbolic suppressions can make Pylint 4.0.5 report
`too-many-lines` depending on file scan order, despite an existing
suppression.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Reproduced the failure before the fix. All six scan orders passed on
Python 3.10; full Python client Pylint passed on Python 3.12. Black and
`git diff --check` passed.
---
clients/client-python/gravitino/api/rel/types/types.py | 2 +-
clients/client-python/tests/unittests/test_gvfs_with_local.py | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/clients/client-python/gravitino/api/rel/types/types.py
b/clients/client-python/gravitino/api/rel/types/types.py
index 35165daedc..5db9d870cd 100644
--- a/clients/client-python/gravitino/api/rel/types/types.py
+++ b/clients/client-python/gravitino/api/rel/types/types.py
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-# pylint: disable=C0302
+# pylint: disable=too-many-lines
from __future__ import annotations
from typing import List
diff --git a/clients/client-python/tests/unittests/test_gvfs_with_local.py
b/clients/client-python/tests/unittests/test_gvfs_with_local.py
index d7537e7502..b7a3a18566 100644
--- a/clients/client-python/tests/unittests/test_gvfs_with_local.py
+++ b/clients/client-python/tests/unittests/test_gvfs_with_local.py
@@ -52,7 +52,6 @@ from tests.unittests.auth.mock_base import (
# pylint: disable=protected-access,too-many-lines,too-many-locals
-# pylint: disable=C0302
def generate_unique_random_string(length):
characters = string.ascii_letters + string.digits
random_string = "".join(random.sample(characters, length))