diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-06-13 12:00:35 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-06-13 12:00:35 -0700 | 
| commit | bd01bcb807ccdffecbf77faef9ec573e5e2da5f0 (patch) | |
| tree | abae61cb2ba9251f0124e604200029e3be7f4708 /continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py | |
| parent | 34f2234e8be2b922876d2fcd519e3c124b397fd2 (diff) | |
| download | sncontinue-bd01bcb807ccdffecbf77faef9ec573e5e2da5f0.tar.gz sncontinue-bd01bcb807ccdffecbf77faef9ec573e5e2da5f0.tar.bz2 sncontinue-bd01bcb807ccdffecbf77faef9ec573e5e2da5f0.zip | |
env to .env to be caught by .gitignore
Diffstat (limited to 'continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py')
| -rw-r--r-- | continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py index ea4607da..88e27d2a 100644 --- a/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py +++ b/continuedev/src/continuedev/recipes/CreatePipelineRecipe/steps.py @@ -35,15 +35,15 @@ class SetupPipelineStep(Step):          # running commands to get started when creating a new dlt pipeline          await sdk.run([ -            'python3 -m venv env', -            'source env/bin/activate', +            'python3 -m venv .env', +            'source .env/bin/activate',              'pip install dlt',              f'dlt --non-interactive init {source_name} duckdb',              'pip install -r requirements.txt'          ], description=dedent(f"""\              Running the following commands: -            - `python3 -m venv env`: Create a Python virtual environment -            - `source env/bin/activate`: Activate the virtual environment +            - `python3 -m venv .env`: Create a Python virtual environment +            - `source .env/bin/activate`: Activate the virtual environment              - `pip install dlt`: Install dlt              - `dlt init {source_name} duckdb`: Create a new dlt pipeline called {source_name} that loads data into a local DuckDB instance              - `pip install -r requirements.txt`: Install the Python dependencies for the pipeline"""), name="Setup Python environment") @@ -156,7 +156,7 @@ class RunQueryStep(Step):      hide: bool = True      async def run(self, sdk: ContinueSDK): -        output = await sdk.run('env/bin/python3 query.py', name="Run test query", description="Running `env/bin/python3 query.py` to test that the data was loaded into DuckDB as expected", handle_error=False) +        output = await sdk.run('.env/bin/python3 query.py', name="Run test query", description="Running `.env/bin/python3 query.py` to test that the data was loaded into DuckDB as expected", handle_error=False)          if "Traceback" in output or "SyntaxError" in output:              suggestion = sdk.models.gpt35.complete(dedent(f"""\ | 
