From 8c2e8c08eb7b6c5287bcec5cbd08f2e0223110f6 Mon Sep 17 00:00:00 2001 From: ljstella Date: Thu, 14 Aug 2025 09:24:51 -0400 Subject: [PATCH 1/4] Version bumps, fix precommit, actually use specified version --- .github/workflows/ruff.yml | 39 +++++++++++++++++++------------------- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 2 +- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 4843361a..9bc10c23 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,22 +1,23 @@ name: lint & format -on: - pull_request: - types: [opened, reopened, synchronize] +on: + pull_request: + types: [opened, reopened, synchronize] jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - name: Install ruff - run: | - python -m pip install --upgrade pip - pip install ruff - - name: Run lint - run: ruff check --output-format=github contentctl/ - - name: Run Formatter - run: ruff format --check contentctl/ \ No newline at end of file + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Poetry + run: python -m pip install poetry + - name: Install ruff + run: | + poetry install --only=dev + - name: Run lint + run: ruff check --output-format=github contentctl/ + - name: Run Formatter + run: ruff format --check contentctl/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bd9a339..0a1e63f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,8 +8,8 @@ repos: - id: detect-private-key - id: forbid-submodules - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.5 + rev: v0.12.8 hooks: - - id: ruff - args: [ --fix ] + - id: ruff-check + args: [--fix] - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index e6071f5f..daed72fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ setuptools = ">=80.9.0" rich = "^14.0.0" [tool.poetry.group.dev.dependencies] -ruff = "^0.12.5" +ruff = "^0.12.8" [build-system] requires = ["poetry-core>=1.0.0"] From 9eef62709cbcefd3d1f2e4e14a64d44b0dcbf80e Mon Sep 17 00:00:00 2001 From: ljstella Date: Thu, 14 Aug 2025 09:29:22 -0400 Subject: [PATCH 2/4] Call ruff appropriately --- .github/workflows/ruff.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 9bc10c23..f13b799e 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -18,6 +18,6 @@ jobs: run: | poetry install --only=dev - name: Run lint - run: ruff check --output-format=github contentctl/ + run: poetry run ruff check --output-format=github contentctl/ - name: Run Formatter - run: ruff format --check contentctl/ + run: poetry run ruff format --check contentctl/ From 51aff960ea528d1f1439f95b5437ec631acd1eb4 Mon Sep 17 00:00:00 2001 From: ljstella Date: Thu, 14 Aug 2025 14:05:40 -0400 Subject: [PATCH 3/4] bump to v0.12.9 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a1e63f3..823aa587 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: detect-private-key - id: forbid-submodules - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.8 + rev: v0.12.9 hooks: - id: ruff-check args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index daed72fc..23d1b95b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ setuptools = ">=80.9.0" rich = "^14.0.0" [tool.poetry.group.dev.dependencies] -ruff = "^0.12.8" +ruff = "^0.12.9" [build-system] requires = ["poetry-core>=1.0.0"] From bfb69ab9260e80f4278ad78f75214dfb9f1928d5 Mon Sep 17 00:00:00 2001 From: ljstella Date: Mon, 25 Aug 2025 14:21:06 -0400 Subject: [PATCH 4/4] Bump to v0.12.10 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 823aa587..8c7a2655 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: detect-private-key - id: forbid-submodules - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.9 + rev: v0.12.10 hooks: - id: ruff-check args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index 23d1b95b..2d60a987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ setuptools = ">=80.9.0" rich = "^14.0.0" [tool.poetry.group.dev.dependencies] -ruff = "^0.12.9" +ruff = "^0.12.10" [build-system] requires = ["poetry-core>=1.0.0"]