From 581b392e6e12a515287a4fc5682db1a4e9763058 Mon Sep 17 00:00:00 2001 From: Po-han Li <34739111+d31003@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:19:19 -0500 Subject: [PATCH] Update seaborn and matplotlib versions in pyproject.toml. Previous versions result in buggy plots (#34) * Update seaborn and matplotlib versions in pyproject.toml. Previous versions result in buggy plots * downgrade seaborn version so it's compatible to statannotations * Fix code style issues using Ruff --- .github/workflows/ruff.yml | 11 ++++++----- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 095f637..f6a82e5 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -9,11 +9,12 @@ jobs: - uses: actions/setup-python@v4 with: python-version: "3.9" + - name: Install Ruff + run: pip install ruff - name: Run Ruff with auto-fix - uses: chartboost/ruff-action@v1 - with: - args: --fix # Automatically apply safe fixes - - uses: stefanzweifel/git-auto-commit-action@v4 + run: ruff check . --fix # Use `ruff check` with the `--fix` argument to auto-fix + - name: Commit changes if there are any + uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: 'style fixes by ruff' - file_pattern: '*.py' # Ensure only Python files are committed \ No newline at end of file + file_pattern: '*.py' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index dc20ece..fdd2ede 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "numpy", "pandas", "seaborn==0.11.2", - "matplotlib==3.8.4", + "matplotlib==3.7.3", "statannotations==0.6.0", "scipy" ]