Skip to content

Commit b638e66

Browse files
authored
Ignore files generated from proto files (#202)
Fixes #185.
2 parents 6f34b76 + 224b60c commit b638e66

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

RELEASE_NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
### Cookiecutter template
2121

2222
- The `pylint` check `too-many-return-statements` is now disabled by default.
23+
- Generated protobuf files are now ignored by Git.
2324

2425
## Bug Fixes
2526

cookiecutter/{{cookiecutter.github_repo_name}}/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ cython_debug/
144144

145145
# PyCharm
146146
.idea
147+
{%- if cookiecutter.type == "api" %}
148+
149+
# Auto-generated python files from the protocol buffer compiler
150+
py/**/*_pb2.py
151+
py/**/*_pb2.pyi
152+
py/**/*_pb2_grpc.py
153+
py/**/*_pb2_grpc.pyi
154+
{%- endif %}
147155

148156
# Automatically generated documentation
149157
docs/reference/

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ cython_debug/
145145
# PyCharm
146146
.idea
147147

148+
# Auto-generated python files from the protocol buffer compiler
149+
py/**/*_pb2.py
150+
py/**/*_pb2.pyi
151+
py/**/*_pb2_grpc.py
152+
py/**/*_pb2_grpc.pyi
153+
148154
# Automatically generated documentation
149155
docs/reference/
150156
site/

0 commit comments

Comments
 (0)