itholic opened a new pull request, #42528:
URL: https://github.com/apache/spark/pull/42528

   ### What changes were proposed in this pull request?
   
   This PR proposes to exclude `python/build/*` for local `lint-python` testing.
   
   ### Why are the changes needed?
   
   When running `./dev/lint-python` in the local test environments, it displays 
a bunch of complains because there is many files from `python/build/*` that 
doesn't make the linter happy as below:
   
   ```
   ...
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:84:5: F821 
undefined name '_DATATYPE_STRUCTFIELD'
       _DATATYPE_STRUCTFIELD._serialized_end = 3360
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:85:5: F821 
undefined name '_DATATYPE_STRUCT'
       _DATATYPE_STRUCT._serialized_start = 3362
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:86:5: F821 
undefined name '_DATATYPE_STRUCT'
       _DATATYPE_STRUCT._serialized_end = 3489
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:87:5: F821 
undefined name '_DATATYPE_ARRAY'
       _DATATYPE_ARRAY._serialized_start = 3492
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:88:5: F821 
undefined name '_DATATYPE_ARRAY'
       _DATATYPE_ARRAY._serialized_end = 3654
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:89:5: F821 
undefined name '_DATATYPE_MAP'
       _DATATYPE_MAP._serialized_start = 3657
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:90:5: F821 
undefined name '_DATATYPE_MAP'
       _DATATYPE_MAP._serialized_end = 3876
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:91:5: F821 
undefined name '_DATATYPE_UDT'
       _DATATYPE_UDT._serialized_start = 3879
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:92:5: F821 
undefined name '_DATATYPE_UDT'
       _DATATYPE_UDT._serialized_end = 4150
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:93:5: F821 
undefined name '_DATATYPE_UNPARSED'
       _DATATYPE_UNPARSED._serialized_start = 4152
       ^
   ./python/build/lib/pyspark/sql/connect/proto/types_pb2.py:94:5: F821 
undefined name '_DATATYPE_UNPARSED'
       _DATATYPE_UNPARSED._serialized_end = 4204
       ^
   1     E241 multiple spaces after ','
   79    E501 line too long (105 > 100 characters)
   8     E712 comparison to False should be 'if cond is False:' or 'if not 
cond:'
   39    F401 'importlib._bootstrap._find_spec' imported but unused
   8     F403 'from pyspark.sql.connect.proto.base_pb2_grpc import *' used; 
unable to detect undefined names
   574   F821 undefined name 
'_EXECUTEPLANRESPONSE_METRICS_METRICOBJECT_EXECUTIONMETRICSENTRY'
   4     F841 local variable 'sc' is assigned to but never used
   713
   1
   ```
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, it's dev-only.
   
   
   ### How was this patch tested?
   
   Manually tested.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to