From fdf994265bb609ee258c0887650c37c2ee37e171 Mon Sep 17 00:00:00 2001 From: Bob Grant Date: Fri, 7 Aug 2026 16:28:52 -0400 Subject: [PATCH] chore(deps-dev): pin ruff lint rule set to historic default ruff 0.16 expands its default lint rule set (~59 -> 413 rules). This repo sets no explicit select, so a bump to ruff 0.16 (e.g. widening the version ceiling to <0.17) makes 'ruff check' fail on newly-default rules (I001, LOG009). Pin the historic default (E + F, plus the existing C901) and move the settings under the [lint] section so a 0.16 upgrade is behavior-neutral; adopting the new categories is a separate, deliberate decision. --- CHANGELOG.md | 3 +++ pyproject.toml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c2a8c..e46f592 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +- [PR 23](https://github.com/salesforce/django-request-queue-timeout/pull/23) Pin the ruff lint rule set to the historic default (E + F) so a ruff 0.16 upgrade stays behavior-neutral + ## [1.0.4] - 2025-12-10 - [PR 9](https://github.com/salesforce/django-request-queue-timeout/pull/9) Update GitHub action versions - [PR 10](https://github.com/salesforce/django-request-queue-timeout/pull/10) Fix Makefile install target diff --git a/pyproject.toml b/pyproject.toml index a5a2499..64c0d7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,11 @@ packages = ["rqto"] [tool.ruff] extend-exclude = [".heroku"] -extend-select = ["C901"] +# ruff 0.16 expanded its default rule set (~59 -> 413 rules). Pin the historic +# default (E + F) explicitly so a ruff 0.16 upgrade stays behavior-neutral; +# adopting the newly-default categories is a separate, deliberate decision. +lint.select = ["E4", "E7", "E9", "F"] +lint.extend-select = ["C901"] [tool.coverage.report] fail_under = 90