Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
pplmx opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@pplmx
Copy link

pplmx commented Dec 6, 2024

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!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant