From e72acbcf8839f90f8f1c88d761c1e274c4fae8f4 Mon Sep 17 00:00:00 2001 From: Aldrian Harjati Date: Tue, 22 Aug 2023 11:51:16 -0400 Subject: [PATCH] use devcontainer requirements --- .devcontainer/requirements.txt | 8 ++++---- .github/workflows/push.yml | 6 +++--- .github/workflows/requirements.txt | 6 ------ requirements.txt | 8 -------- 4 files changed, 7 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/requirements.txt delete mode 100644 requirements.txt diff --git a/.devcontainer/requirements.txt b/.devcontainer/requirements.txt index ffc429af..2bf65fcb 100644 --- a/.devcontainer/requirements.txt +++ b/.devcontainer/requirements.txt @@ -1,8 +1,8 @@ -kedro==0.18.7 +kedro==0.18.12 black==23.3.0 ruff==0.0.259 pandas==1.5.3 pandera==0.14.5 -ipykernel -openpyxl -pytest \ No newline at end of file +ipykernel==6.25.1 +openpyxl==3.1.2 +pytest==7.4.0 \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9aafa4d0..82c07cbc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,13 +18,13 @@ jobs: run: | python -m pip install --upgrade pip pip install ruff pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f .devcontainer/requirements.txt ]; then pip install -r .devcontainer/requirements.txt; fi - name: Lint with ruff run: | # stop the build if there are Python syntax errors or undefined names - ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 . + ruff --format=github --select=E9,F63,F7,F82 --target-version=py311 . # default set of ruff rules with GitHub Annotations - ruff --format=github --target-version=py37 . + ruff --format=github --target-version=py311 . - name: Test with pytest run: | pytest diff --git a/.github/workflows/requirements.txt b/.github/workflows/requirements.txt deleted file mode 100644 index cde310f2..00000000 --- a/.github/workflows/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -kedro -pandas -pandera -ipykernel -openpyxl -pytest \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index a3897c12..00000000 --- a/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -kedro -black -ruff -pandas -pandera -ipykernel -openpyxl -pytest \ No newline at end of file