From cfe9507c0a78227324ff628f4c66dd70da759ff2 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Sat, 5 Oct 2024 12:13:54 +0200 Subject: [PATCH] iter --- .github/workflows/tests.yml | 2 +- pixi.lock | 2 +- pyproject.toml | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7955b8300..8a0260296 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: frozen: true - name: Run tests - run: pixi run -e ${{ matrix.environment }} test -n auto + run: pixi run -e ${{ matrix.environment }} tests -n auto - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.5.0 diff --git a/pixi.lock b/pixi.lock index 9f3a7d795..9d662549d 100644 --- a/pixi.lock +++ b/pixi.lock @@ -8650,7 +8650,7 @@ packages: name: imbalanced-learn version: 0.13.0.dev0 path: . - sha256: 4cdf7572e0ec8f78865c12fc8bd1939843d3498408fcb6b1e8252538a86482cc + sha256: 7f591cc9af5e6500ee21e365af326a8d6db3737cc438ff50e6429f872f4c929b requires_dist: - numpy<3,>=1.24.3 - scipy<2,>=1.10.1 diff --git a/pyproject.toml b/pyproject.toml index 141fca0b9..f49485e4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -172,6 +172,16 @@ pytest-xdist = ">=3.5.0,<4" [tool.pixi.pypi-dependencies] imbalanced-learn = { path = ".", editable = true } +[tool.pixi.feature.docs.tasks] +build-docs = { cmd = "make html", cwd = "doc" } +clean-docs = { cmd = "rm -rf _build/ && rm -rf auto_examples/ && rm -rf reference/generated/", cwd = "doc" } + +[tool.pixi.feature.linters.tasks] +linters = { cmd = "pre-commit install && pre-commit run -v --all-files --show-diff-on-failure" } + +[tool.pixi.feature.tests.tasks] +tests = { cmd = "pytest -vsl --cov=imblearn --cov-report=xml imblearn" } + [tool.pixi.environments] linters = ["linters"] docs = ["optional", "docs", "tensorflow"]