From 151ffe679e0241962d2550ce72cb42f3be04b096 Mon Sep 17 00:00:00 2001 From: Muhammad Yasirroni Date: Sat, 7 Sep 2024 22:43:48 +0700 Subject: [PATCH] use "[dev]" on build and publish workflow --- .github/workflows/build.yml | 6 +----- .github/workflows/publish.yml | 6 +----- pyproject.toml | 7 +++++-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51efd39..274fbd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,13 +47,9 @@ jobs: if: matrix.platform == 'octave' uses: MATPOWER/action-install-octave-linux@v1 - - name: Install requirements - run: | - pip install -r requirements-dev.txt - - name: Install package run: | - pip install -e . + pip install -e ."[dev]" - name: Generate coverage report run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab6bbe0..27c23df 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,13 +28,9 @@ jobs: if: matrix.platform == 'octave' uses: MATPOWER/action-install-octave-linux@v1 - - name: Install requirements - run: | - pip install -r requirements-dev.txt - - name: Install package run: | - pip install -e . + pip install -e ."[dev]" - name: Generate coverage report run: | diff --git a/pyproject.toml b/pyproject.toml index ca341fa..092a7c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,13 +39,16 @@ matpower = [ "matpower>=7.1.0.2.1.4", ] dev = [ + "matpower>=7.1.0.2.1.4", + "numpy>=1.21.5", "oct2py>=5.5.1", # latest support for 3.7 "openpyxl>=3.1.2", - "matpower>=7.1.0.2.1.4", + "pandas>=1.2.0", + "pre-commit>=2.21.0", "pytest>=7.2.0", "pytest-cov>=4.0.0", "pytest-xdist>=3.1.0", - "pre-commit>=2.21.0", + "ruff>=0.6.4", ] [project.urls]