linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Exclude Python Files Generated by Protocol Buffers from Language Statistics

Open pplmx opened this issue 1 year ago • 0 comments

Problem:

Linguist currently counts Python files generated by Protocol Buffers as regular Python code. These machine-generated files should be excluded from language statistics.


Example:

Typical patterns for generated Python files:

  • *_pb2.py
  • *_pb2.pyi
  • *_pb2_grpc.py

Example project: pplmx/pb


Expected Behavior:

Linguist should detect and skip Python files generated by Protocol Buffers based on their naming patterns.


Reference:

Documentation for generated Python files: Protocol Buffers Python Generated Code

Thank you!

pplmx avatar Dec 06 '24 09:12 pplmx