From 9eacd1ce2790ff683d6367ba2cd1fa29cec0f0b6 Mon Sep 17 00:00:00 2001 From: Ishika Aahna <123102828+codedbyishika@users.noreply.github.com> Date: Thu, 30 Jul 2026 16:48:49 -0400 Subject: [PATCH] Pin Ruff --- .gitignore | 3 +++ .pre-commit-config.yaml | 9 ++++++--- pyproject.toml | 14 +++++++------- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 26f8e80..2c5bbdc 100644 --- a/.gitignore +++ b/.gitignore @@ -111,6 +111,9 @@ ipython_config.py .pdm-python .pdm-build/ +# uv +uv.lock + # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm __pypackages__/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecc4517..8b786e5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,9 @@ repos: - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.2 + - repo: local hooks: - id: ruff - + name: ruff + entry: uv run --extra dev ruff check --force-exclude + language: system + types_or: [python, pyi] + require_serial: true \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ff89887..b4639e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,13 +30,6 @@ dependencies = [ "sum-buddy", ] -[project.optional-dependencies] -dev = [ - "pytest", - "ruff", - "pre-commit" -] - keywords = [ "imageomics", "metadata", @@ -52,6 +45,13 @@ keywords = [ "sum-buddy", ] +[project.optional-dependencies] +dev = [ + "pytest", + "ruff==0.16.0", + "pre-commit" +] + [project.urls] Homepage = "https://github.com/Imageomics/cautious-robot" Repository = "https://github.com/Imageomics/cautious-robot.git"