tvalentyn commented on code in PR #1:
URL: https://github.com/apache/beam-starter-python/pull/1#discussion_r896890208


##########
.github/PULL_REQUEST_TEMPLATE.md:
##########
@@ -0,0 +1,12 @@
+**Please** add a meaningful description for your change here
+
+------------------------
+
+Thank you for your contribution! Follow this checklist to help us incorporate 
your contribution quickly and easily:
+
+ - [ ] I agree that my contributions are licensed with both [Apache 
ASL2](../../LICENSE-APACHE) and [MIT](../../LICENSE-MIT).
+ - [ ] [**Choose 
reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and 
mention them in a comment (`R: @username`).
+ - [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA 
issue, if applicable. This will automatically link the pull request to the 
issue.

Review Comment:
   Beam now uses github issues tracker.



##########
my_app/app.py:
##########
@@ -0,0 +1,27 @@
+# Copyright 2022 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+# https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
+# option. This file may not be copied, modified, or distributed
+# except according to those terms.
+
+from typing import Callable, Optional
+import apache_beam as beam
+from apache_beam.options.pipeline_options import PipelineOptions
+
+
+def run(
+    input_text: str,
+    beam_options: Optional[PipelineOptions] = None,
+    test: Callable[[beam.PCollection], None] = lambda _: None,
+) -> None:
+    with beam.Pipeline(options=beam_options) as pipeline:
+        elements = (
+            pipeline
+            | "Create elements" >> beam.Create(["Hello", "World!", input_text])
+            | "Print elements" >> beam.Map(lambda x: print(x) or x)

Review Comment:
   this a little hacky. maybe add a helper that prints+returns/yields a value?



##########
README.md:
##########
@@ -0,0 +1,78 @@
+# Apache Beam starter for Python
+
+If you want to clone this repository to start your own project,
+you can choose the license you prefer and feel free to delete anything related 
to the license you are dropping.
+
+## Before you begin
+
+Make sure you have a [Python 3](https://www.python.org/) development 
environment ready.
+If you don't, you can follow the instructions in the
+[Python 3 Installation & Setup 
Guide](https://realpython.com/installing-python/).
+
+We recommend using a virtual environment to isolate your project's 
dependencies.
+
+```sh
+# Create a new Python virtual environment.
+python -m venv env
+
+# Activate the virtual environment.
+source env/bin/activate
+```
+
+While activated, your `python` and `pip` commands will point to the virtual 
environment,
+so any changes or install dependencies are self-contained.
+
+As a one time setup, let's install the project's dependencies from the 
[`requirements.tx`](requirements.txt) file.

Review Comment:
   ```suggestion
   As a one time setup, let's install the project's dependencies from the 
[`requirements.txt`](requirements.txt) file.
   ```



##########
CONTRIBUTING.md:
##########
@@ -0,0 +1,69 @@
+# Contributing
+
+🎉🎊 Thanks for taking the time to contribute! 🎉🎊
+
+There are many ways to contribute, here are some.
+
+## Filing an issue
+
+If there's any issue you encounter or anything that needs to be fixed, feel 
free to [create JIRA 
issue](https://issues.apache.org/jira/secure/CreateIssue!default.jspa).

Review Comment:
   ditto



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to