This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 0b6869e [SPARK-57079] Add `*.pyc` and `*.pyo` to `.gitignore`
0b6869e is described below
commit 0b6869e007c97c4c482c4cb7ef0e44827615c06f
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue May 26 09:31:30 2026 -0700
[SPARK-57079] Add `*.pyc` and `*.pyo` to `.gitignore`
### What changes were proposed in this pull request?
This PR aims to add `*.pyc` and `*.pyo` to `.gitignore` to exclude Python
bytecode files from being tracked by Git.
### Why are the changes needed?
Like Apache Spark main repository, to prevent accidental commits of Python
compiled bytecode files (`*.pyc`, `*.pyo`) that may be generated when running
Python scripts in this repository (e.g., `dev/spark_jira_utils.py`).
https://github.com/apache/spark/blob/30bdf0b39fa6b28ea149ddd43ecd962b2b3c0cd2/.gitignore#L6-L7
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review of `.gitignore`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.7
Closes #691 from dongjoon-hyun/SPARK-57079.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.gitignore | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.gitignore b/.gitignore
index 0721b66..4718479 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
*.swp
*~
+*.pyc
+*.pyo
.java-version
.DS_Store
.idea/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]