This is an automated email from the ASF dual-hosted git repository.

yuqi1129 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 8769b54b86 [#3560] improvement(client-python): Fix too-many-arguments 
and too-many-positional-arguments Pylint rules (#13671)
8769b54b86 is described below

commit 8769b54b86c8699e2f806e2da96f1800ab6f9ceb
Author: dennismdejong <[email protected]>
AuthorDate: Wed Oct 7 13:12:37 2026 +0200

    [#3560] improvement(client-python): Fix too-many-arguments and 
too-many-positional-arguments Pylint rules (#13671)
    
    ### What changes were proposed in this pull request?
    
    Configure `max-args` and `max-positional-arguments` in the `[DESIGN]`
    section of the client-python `pylintrc`, consistent with the existing
    `max-returns=10` limit, and remove `too-many-arguments` and
    `too-many-positional-arguments` from the `disable` list.
    
    ### Why are the changes needed?
    
    The client-python DTO constructors, builders and API methods
    legitimately carry up to 10 parameters (mirroring the Java client), so
    configuring the design threshold is the correct resolution instead of
    degrading the public API or leaving the rules disabled.
    
    Fix: #3560
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    ```bash
    ./gradlew clients:client-python:pylint
    ./gradlew clients:client-python:test -PskipITs
    ```
---
 clients/client-python/pylintrc | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/clients/client-python/pylintrc b/clients/client-python/pylintrc
index 4adb711856..34fc5b996a 100644
--- a/clients/client-python/pylintrc
+++ b/clients/client-python/pylintrc
@@ -38,8 +38,6 @@ disable=missing-class-docstring,
         fixme,          
         unnecessary-pass,               
         duplicate-code,                 #TODO-fix
-        too-many-arguments,             #TODO-fix
-        too-many-positional-arguments,  #TODO-fix
 
 [LOGGING]
 
@@ -99,3 +97,9 @@ module-naming-style=snake_case
 
 # Maximum number of return / yield for a function / method body.
 max-returns=10
+
+# Maximum number of arguments for a function / method.
+max-args=10
+
+# Maximum number of positional arguments for a function / method.
+max-positional-arguments=10

Reply via email to