Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

11.14 init kedro #5

Merged
merged 10 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test-kedro-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade poetry
poetry config virtualenvs.create false
poetry install
poetry install --with test

- name: Run kedro
working-directory: test-project
env:
COLUMNS: 200
run: kedro run --env=test

- name: Run tests (pytest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@
#
# This is a data set used by the "Hello World" example pipeline provided with the project
# template. Please feel free to remove it once you remove the example pipeline.

test_data:
type: pandas.CSVDataset
filepath: data/01_raw/test-data.csv
load_args:
sep: ","
index_col: 0
# parse_dates:
# - date
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Column1,Column2
1,2
2 changes: 1 addition & 1 deletion mini-poetry/{{ cookiecutter.repo_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8.1"
kedro = "^{{ cookiecutter.kedro_version }}"
kedro-datasets = "^1.0.0"
kedro-datasets = {version="^1.0.0", extras=["pandas.CSVDataset"]}

[tool.poetry.group.dev]
optional = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .pipeline import create_pipeline

__all__ = ["create_pipeline"]

__version__ = "0.1"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import logging

LOGGER = logging.getLogger(__name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from kedro.pipeline import Pipeline, pipeline, node

def create_pipeline(**kwargs) -> Pipeline:
return pipeline(
[
node(
func=lambda x: x,
inputs="test_data",
outputs="processed_data",
name="data_processing",
)
],
inputs=None,
outputs=None,
parameters=None,
namespace=None,
tags=None,
)