Skip to content

Exclude Python Files Generated by Protocol Buffers from Language Statistics #7149

@pplmx

Description

@pplmx

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions